/**
 * Aurora Digital Solutions - Authentication Styles
 */

/* Login Page Layout */
.login-page {
    background: linear-gradient(135deg, var(--aurora-navy) 0%, var(--aurora-blue) 50%, var(--aurora-bright-blue) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.login-card {
    background: var(--surface-color);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-logo {
    height: 80px;
    margin-bottom: 20px;
    border-radius: 12px;
}

.login-header h1 {
    color: var(--aurora-navy);
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.login-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Form Styles */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    display: block;
    font-weight: 500;
    color: var(--aurora-navy);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.login-form input[type="email"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
}

.login-form input:focus {
    outline: none;
    border-color: var(--aurora-bright-blue);
    box-shadow: 0 0 0 4px rgba(15, 158, 213, 0.15);
}

.login-form input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Button Styles */
.btn-block {
    width: 100%;
    padding: 14px 20px;
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn-primary {
    background-color: var(--aurora-orange);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary:hover {
    background-color: #d96229;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-text,
.btn-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.loading-spinner-small {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Error Message */
.error-message {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    margin-bottom: 15px;
    text-align: center;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 25px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* User Menu in Header */
.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    font-size: 0.95rem;
}

.user-avatar {
    width: 36px;
    height: 36px;
    background-color: var(--aurora-orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: white;
}

.user-name {
    font-weight: 500;
}

.btn-logout {
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Responsive */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 25px;
    }

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

    .login-logo {
        height: 60px;
    }

    .user-menu {
        flex-direction: column;
        gap: 10px;
    }
}
