﻿.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: radial-gradient(circle at 20% 30%, rgba(193, 39, 45, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(193, 39, 45, 0.08) 0%, transparent 50%), var(--bg-body);
}

.login-box {
    width: 100%;
    max-width: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    box-shadow: var(--shadow-lg);
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-circle {
    width: 72px;
    height: 72px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-hover));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(193, 39, 45, 0.4);
}

    .logo-circle span {
        font-size: 1.8rem;
        font-weight: bold;
        color: #fff;
        letter-spacing: 1px;
    }

.login-logo h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--text-main);
}

.login-logo p {
    font-size: 0.85rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .form-group label {
        font-size: 0.9rem;
        color: var(--text-muted);
    }

    .form-group input {
        padding: 0.75rem 1rem;
        background: var(--bg-input);
        border: 1px solid var(--border-color);
        border-radius: var(--radius);
        color: var(--text-main);
        transition: border-color var(--transition), box-shadow var(--transition);
    }

        .form-group input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px var(--primary-light);
        }

        .form-group input::placeholder {
            color: #666;
        }

.btn-login {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background var(--transition), transform 0.1s ease;
}

    .btn-login:hover:not(:disabled) {
        background: var(--primary-hover);
    }

    .btn-login:active:not(:disabled) {
        transform: scale(0.98);
    }

    .btn-login:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

.btn-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.login-error {
    padding: 0.75rem 1rem;
    background: rgba(211, 47, 47, 0.1);
    border: 1px solid rgba(211, 47, 47, 0.4);
    border-radius: var(--radius);
    color: #ff6b6b;
    font-size: 0.85rem;
    text-align: center;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}
