* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 20px 0;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-dark-3) 100%);
    overflow-x: hidden;
    width: 100%;
}

.login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 450px;
    padding: 20px;
    margin: auto;
    transition: max-width 0.5s ease;
    animation: fadeInScale 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container.wide {
    max-width: 800px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
}

.glass-card.wide {
    text-align: left;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 255, 132, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* ════════════════════════════════════════
   LOGO & HEADER
   ════════════════════════════════════════ */
.login-header {
    margin-bottom: 40px;
}

.login-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.login-logo:hover {
    transform: translateY(-5px) rotate(5deg);
}

.login-logo img {
    width: 65px;
    height: 65px;
    object-fit: contain;
}

.login-header h1 {
    color: #fff;
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-header p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-top: 10px;
}

.glass-card.wide .login-header {
    text-align: center;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.grid-full {
    grid-column: span 2;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .grid-full {
        grid-column: span 1;
    }
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.input-wrapper {
    position: relative;
    text-align: left;
}

.input-wrapper label {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    margin-left: 5px;
}

.input-field {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 20px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.input-field:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-green);
    box-shadow: 0 0 15px rgba(0, 255, 132, 0.15);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.submit-btn {
    background: var(--accent-green);
    color: var(--primary-dark);
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-top: 10px;
    box-shadow: 0 10px 20px rgba(0, 255, 132, 0.2);
}

.submit-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 255, 132, 0.3);
    background: var(--accent-green-2);
}

.submit-btn:active {
    transform: translateY(0) scale(1);
}

.separator {
    display: flex;
    align-items: center;
    margin: 25px 0;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.separator span {
    padding: 0 15px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.google-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    padding: 10px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.google-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.google-icon {
    font-size: 1.1rem;
    color: var(--accent-green);
    opacity: 0.8;
    transition: all 0.3s ease;
    text-shadow: 0 0 10px rgba(0, 255, 132, 0.2);
}

.google-btn:hover .google-icon {
    opacity: 1;
    transform: scale(1.1) rotate(10deg);
    text-shadow: 0 0 15px rgba(0, 255, 132, 0.5);
}

.footer-text {
    margin-top: 30px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-text a {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #fff;
    text-decoration: underline;
}

/* ════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════ */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Decorative Orbs */
.orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 255, 132, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 2;
    filter: blur(50px);
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    top: -100px;
    left: -100px;
}

.orb-2 {
    bottom: -100px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes floatOrb {
    from {
        transform: translate(0, 0);
    }

    to {
        transform: translate(100px, 50px);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .glass-card {
        padding: 30px 15px;
        border-radius: 16px;
    }

    .login-header h1 {
        font-size: 2rem;
    }

    .input-field {
        padding: 12px 15px;
    }

    .submit-btn {
        padding: 14px;
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .login-container {
        padding: 5px;
    }

    .glass-card {
        padding: 25px 10px;
        border-radius: 12px;
    }

    .login-header h1 {
        font-size: 1.8rem;
    }
}