* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-primary);
    font-size: 14px;
    background: var(--clr-background);
    color: var(--clr-text-primary);
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-x: hidden;
    position: relative;
}

.theme-switcher {
    top: 1.5rem;
}

/* Main Layout */
.login-container {
    width: 560px;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Login Section - Compact */
.login-section {
    position: relative;
    animation: slideInRight 0.8s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(25px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.login-card {
    background: var(--clr-background-alt);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--clr-border);
}

.login-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-header img {
    margin-bottom: 0.4rem;
}

.login-subtitle {
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Form Styles */
.login-form {
    margin-bottom: 1.5rem;
}

.input-group {
    margin-bottom: 1.2rem;
}

.input-field {
    position: relative;
    margin-bottom: 0.4rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-text-muted);
    font-size: 1rem;
    z-index: 2;
}

.input-field input {
    width: 100%;
    padding: 0.85rem 0.85rem 0.85rem 2.7rem;
    font-size: 0.95rem;
    font-family: var(--font-primary);
    background: var(--clr-background);
    border: 2px solid var(--clr-border);
    border-radius: 10px;
    color: var(--clr-text-primary);
    transition: var(--transition);
}

.input-field input:focus {
    outline: none;
    border-width: 2px;
    border-color: var(--clr-accent-primary);
}

.input-field input::placeholder {
    color: var(--clr-text-muted);
    font-weight: 400;
}

.input-hint {
    font-size: 0.8rem;
    color: var(--clr-text-muted);
    padding-left: 0.4rem;
    font-weight: 400;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin: 1.2rem 0 1.5rem;
}

.forgot-password {
    color: var(--clr-accent-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--clr-accent-secondary);
}

/* Login Button */
.login-button {
    margin-top: 2rem;
    width: 100%;
    background: var(--gradient);
    color: white;
    border: none;
    padding: 0.95rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition);
    overflow: hidden;
    position: relative;
    font-family: var(--font-primary);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.25);
}

.button-icon {
    transition: transform 0.2s ease;
    font-size: 0.9rem;
}

/* Login Footer */
.login-footer {
    text-align: center;
    padding-top: .5rem;
    position: relative;
    bottom: 0.2rem;
}

.login-footer p {
    color: var(--clr-text-secondary);
    font-size: 0.9rem;
}

.signup-link {
    background: transparent;
    border: none;
    font-family: var(--font-primary);
    font-size: inherit;
    color: var(--clr-accent-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
}

.signup-link:hover {
    color: var(--clr-accent-secondary);
    text-decoration: underline;
}

/* Background Elements */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.bg-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg,
            rgba(0, 123, 255, 0.08),
            rgba(40, 167, 69, 0.08));
    filter: blur(40px);
}

.bg-1 {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -80px;
    animation: floatSlow 18s ease-in-out infinite;
}

.bg-2 {
    width: 220px;
    height: 220px;
    bottom: -80px;
    right: -80px;
    animation: floatSlow 22s ease-in-out infinite reverse;
}

.bg-3 {
    width: 160px;
    height: 160px;
    top: 40%;
    right: 15%;
    animation: floatSlow 26s ease-in-out infinite;
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(20px, 20px) rotate(120deg);
    }

    66% {
        transform: translate(-15px, 15px) rotate(240deg);
    }
}

/* Responsive Design */
@media screen and (max-width: 992px) {
    .login-container {
        max-width: 500px;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    body {
        padding: 1rem;
        font-size: 13px;
    }

    .login-card {
        padding: 1.5rem;
    }

    .theme-switcher {
        top: 1rem;
        right: 1rem;
        width: 38px;
        height: 38px;
    }

    .login-title {
        font-size: 1.5rem;
    }

    .input-field input {
        padding: 0.75rem 0.75rem 0.75rem 2.5rem;
        font-size: 0.9rem;
    }

    .login-button {
        padding: 0.85rem;
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    .login-card {
        padding: 1.25rem;
    }

    .login-title {
        font-size: 1.4rem;
    }

    .form-options {
        margin: 1rem 0 1.2rem;
    }
}