﻿.login-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

    .login-container::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><polygon fill="%23ffffff08" points="0,1000 1000,0 1000,1000"/></svg>');
        pointer-events: none;
    }

.login-card {
    backdrop-filter: blur(25px);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    border-radius: 24px;
    padding: 3rem;
    width: 450px;
    transition: all 0.3s ease;
}

    .login-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.15);
    }

.logo-container {
    position: relative;
    margin-bottom: 2.5rem;
    text-align: center;
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    background: radial-gradient(circle, rgb(255 255 255) 0%, #ffffff 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite alternate;
}

.logo-img {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    transition: all 0.4s ease;
    cursor: pointer;
}

    .logo-img:hover {
        transform: scale(1.1) rotate(5deg);
        filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.2));
    }

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.2;
    }
}

.brand-title {
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: 2.5rem;
    letter-spacing: -1px;
    margin: 1rem 0 0.5rem;
    animation: slideInUp 0.8s ease-out;
}

.welcome-text {
    color: rgba(0, 0, 0, 0.6);
    font-size: 1.1rem;
    font-weight: 500;
    animation: slideInUp 0.8s ease-out 0.2s both;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    text-align: center;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease-out 0.4s both;
}

.custom-input-group {
    position: relative;
    margin-bottom: 1.5rem;
    animation: slideInUp 0.8s ease-out 0.6s both;
}

.custom-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    outline: none;
    box-sizing: border-box;
}

    .custom-input:focus {
        border-color: #667eea;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
        transform: translateY(-2px);
    }

    .custom-input:hover:not(:focus) {
        border-color: rgba(102, 126, 234, 0.3);
        transform: translateY(-1px);
    }

.custom-label {
    position: absolute;
    left: 1.25rem;
    top: 1rem;
    font-size: 1rem;
    color: rgba(0, 0, 0, 0.6);
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    z-index: 1;
}

.custom-input:focus + .custom-label,
.custom-input:not(:placeholder-shown) + .custom-label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.85rem;
    color: #667eea;
    background: rgba(255, 255, 255, 0.9);
    padding: 0 0.5rem;
    border-radius: 8px;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(0, 0, 0, 0.5);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    z-index: 2;
}

    .password-toggle:hover {
        background: rgba(102, 126, 234, 0.1);
        color: #667eea;
        transform: translateY(-50%) scale(1.1);
    }

.forgot-password {
    text-align: right;
    margin: 0.5rem 0 2rem;
    animation: slideInUp 0.8s ease-out 0.8s both;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
}

    .forgot-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background: linear-gradient(135deg, #667eea, #764ba2);
        transition: width 0.3s ease;
    }

    .forgot-link:hover::after {
        width: 100%;
    }

.custom-button {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    animation: slideInUp 0.8s ease-out 1s both;
}

    .custom-button::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }

    .custom-button:hover::before {
        left: 100%;
    }

    .custom-button:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    }

    .custom-button:active {
        transform: translateY(-1px);
    }

    .custom-button:disabled {
        opacity: 0.7;
        cursor: not-allowed;
        transform: none;
    }

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.floating-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    animation: float 8s ease-in-out infinite;
}

    .floating-circle:nth-child(1) {
        width: 80px;
        height: 80px;
        top: 15%;
        left: 8%;
        animation-delay: 0s;
    }

    .floating-circle:nth-child(2) {
        width: 120px;
        height: 120px;
        top: 70%;
        right: 5%;
        animation-delay: 3s;
    }

    .floating-circle:nth-child(3) {
        width: 60px;
        height: 60px;
        top: 85%;
        left: 15%;
        animation-delay: 6s;
    }

    .floating-circle:nth-child(4) {
        width: 40px;
        height: 40px;
        top: 25%;
        right: 20%;
        animation-delay: 1.5s;
    }

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }

    25% {
        transform: translateY(-25px) rotate(90deg);
    }

    50% {
        transform: translateY(-15px) rotate(180deg);
    }

    75% {
        transform: translateY(-35px) rotate(270deg);
    }
}

.register-section {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    animation: slideInUp 0.8s ease-out 1.2s both;
    transition: all 0.3s ease;
}

    .register-section:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

.register-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.register-link {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    margin-left: 0.5rem;
}

    .register-link::after {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -2px;
        left: 0;
        background: white;
        transition: width 0.3s ease;
    }

    .register-link:hover::after {
        width: 100%;
    }

.validation-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}
