/* Login Page Styles */

/* ========================================
   ANIMATED LUMA LOGO
   ======================================== */

.login-logo .logo-icon {
    filter: drop-shadow(0 0 20px rgba(242, 207, 123, 0.3));
}

/* Rotating circles animation */
.login-logo .circle-outer {
    animation: rotateCircle 3s linear infinite;
    transform-origin: center;
}

.login-logo .circle-mid {
    animation: rotateCircle 2.5s linear infinite reverse;
    transform-origin: center;
}

.login-logo .circle-inner {
    animation: pulseCircle 2s ease-in-out infinite;
    transform-origin: center;
}

.login-logo .circle-core {
    animation: glowPulse 2s ease-in-out infinite;
    transform-origin: center;
}

@keyframes rotateCircle {
    0% {
        transform: rotate(0deg);
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.6;
    }
}

@keyframes pulseCircle {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes glowPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 10px rgba(242, 207, 123, 0.6));
    }
    50% {
        transform: scale(1.2);
        filter: drop-shadow(0 0 20px rgba(242, 207, 123, 1));
    }
}

/* Login Wrapper - Full Screen Center */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

/* Login Container - Glass Morphism Card */
.login-container {
    width: 100%;
    max-width: 480px;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(40px) saturate(150%);
    -webkit-backdrop-filter: blur(40px) saturate(150%);
    border-radius: 32px;
    padding: 48px 40px;
    position: relative;
    z-index: 10;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(168, 107, 62, 0.2);
    animation: fadeInScale 0.6s ease-out;
}

/* Gradient Border Effect */
.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(135deg, 
        rgba(125, 63, 38, 0.6) 0%, 
        rgba(212, 165, 116, 0.8) 30%,
        rgba(242, 207, 123, 0.9) 50%,
        rgba(212, 165, 116, 0.8) 70%,
        rgba(125, 63, 38, 0.6) 100%);
    border-radius: 32px;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.4;
    pointer-events: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Login Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    margin-bottom: 32px;
    transition: all 0.3s ease;
}

.login-logo:hover {
    transform: translateY(-2px);
}

.login-logo .logo-icon {
    filter: drop-shadow(0 0 12px rgba(212, 165, 116, 0.4));
}

.login-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    background: linear-gradient(135deg, #f2cf7b 0%, #d29658 70%, #7d3f26 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-title {
    font-size: 32px;
    font-weight: 800;
    color: #E8DCC4;
    margin-bottom: 8px;
    font-family: 'Comfortaa', sans-serif;
    letter-spacing: -0.5px;
}

.login-subtitle {
    font-size: 15px;
    color: rgba(196, 181, 160, 0.7);
    font-weight: 500;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Form Group */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(212, 165, 116, 0.9);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    font-size: 11px;
}

/* Input Wrapper */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: rgba(212, 165, 116, 0.5);
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 16px 16px 16px 48px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1.5px solid rgba(168, 107, 62, 0.25);
    border-radius: 14px;
    color: #f4f1ea;
    font-size: 15px;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

.form-input::placeholder {
    color: rgba(196, 181, 160, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: rgba(212, 165, 116, 0.6);
    background: rgba(10, 9, 8, 0.8);
    box-shadow: 
        inset 0 2px 8px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(168, 107, 62, 0.15),
        0 4px 16px rgba(168, 107, 62, 0.2);
}

.form-input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: rgba(242, 207, 123, 0.9);
    filter: drop-shadow(0 0 8px rgba(242, 207, 123, 0.4));
}

/* Toggle Password Button */
.toggle-password {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: rgba(212, 165, 116, 0.5);
    cursor: pointer;
    padding: 4px;
    transition: all 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: rgba(242, 207, 123, 0.9);
    transform: scale(1.1);
}

.eye-icon {
    display: block;
}

/* Form Options - Remember Me & Forgot Password */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -8px;
}

/* Custom Checkbox */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(168, 107, 62, 0.4);
    border-radius: 6px;
    background: rgba(10, 9, 8, 0.6);
    position: relative;
    transition: all 0.3s ease;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 6px;
    width: 5px;
    height: 10px;
    border: solid #f2cf7b;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg) scale(0);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.checkbox-input:checked + .checkbox-custom {
    background: linear-gradient(135deg, rgba(125, 63, 38, 0.4) 0%, rgba(168, 107, 62, 0.5) 100%);
    border-color: rgba(212, 165, 116, 0.8);
}

.checkbox-input:checked + .checkbox-custom::after {
    transform: rotate(45deg) scale(1);
}

.checkbox-label:hover .checkbox-custom {
    border-color: rgba(212, 165, 116, 0.6);
}

.checkbox-text {
    font-size: 14px;
    color: rgba(196, 181, 160, 0.7);
    font-weight: 500;
}

/* Forgot Password Link */
.forgot-link {
    font-size: 14px;
    color: rgba(212, 165, 116, 0.8);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.forgot-link:hover {
    color: #f2cf7b;
    text-shadow: 0 0 12px rgba(242, 207, 123, 0.4);
}

/* Auth Button Styles */
.btn-auth {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #f2cf7b 0%, #d29658 70%, #7d3f26 100%);
    border: none;
    border-radius: 10px;
    color: #0a0a0a;
    font-size: 1.05rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 8px;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(242, 207, 123, 0.4),
                0 0 20px rgba(242, 207, 123, 0.3);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-text {
    position: relative;
    z-index: 1;
}

/* Loader Styles */
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(10, 10, 10, 0.3);
    border-top-color: #0a0a0a;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Terms Agreement */
.terms-agreement {
    font-size: 12px;
    color: rgba(196, 181, 160, 0.6);
    text-align: center;
    line-height: 1.6;
    margin-top: 8px;
}

.terms-agreement a {
    color: rgba(212, 165, 116, 0.85);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.terms-agreement a:hover {
    color: #f2cf7b;
    text-decoration: underline;
}

/* Terms Link (in checkbox) */
.terms-link {
    color: rgba(212, 165, 116, 0.85);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.terms-link:hover {
    color: #f2cf7b;
    text-decoration: underline;
}

/* Login Footer */
.login-footer {
    margin-top: 32px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(168, 107, 62, 0.15);
}

.footer-text {
    font-size: 14px;
    color: rgba(196, 181, 160, 0.7);
    font-weight: 500;
}

.signup-link {
    color: #f2cf7b;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.signup-link:hover {
    color: #eccf83;
    text-shadow: 0 0 12px rgba(242, 207, 123, 0.4);
}

/* Decorative Elements */
.login-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.06;
    animation: float 20s infinite ease-in-out;
}

.login-decoration-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(242, 207, 123, 0.3) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.login-decoration-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.25) 0%, transparent 70%);
    bottom: -80px;
    left: -80px;
    animation-delay: 2s;
}

.login-decoration-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(125, 63, 38, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Responsive Design */
@media (max-width: 640px) {
    .login-container {
        padding: 36px 28px;
        border-radius: 24px;
    }

    .login-title {
        font-size: 28px;
    }

    .login-subtitle {
        font-size: 14px;
    }

    .login-logo .logo-text {
        font-size: 24px;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .login-wrapper {
        padding: 20px;
    }

    .login-container {
        padding: 28px 24px;
    }

    .login-header {
        margin-bottom: 32px;
    }
}

