/* Professional Authentication Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #1F4E79 0%, #0f2c44 100%);
    --accent-color: #7FD1C9;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    --input-border: #e2e8f0;
    --focus-ring: rgba(31, 78, 121, 0.2);
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

.auth-container {
    width: 100%;
    max-width: 440px;
    padding: 1rem;
    animation: slideUp 0.5s ease-out;
}

.auth-card {
    background: var(--bg-overlay);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(31, 78, 121, 0.3);
    overflow: hidden;
    padding: 5px;
}

.auth-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.input-group {
    position: relative;
    transition: all 0.3s ease;
}

.input-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.auth-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border-radius: 12px;
    border: 2px solid var(--input-border);
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    background: #f8fafc;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: #1F4E79;
    background: white;
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.auth-input:focus+.input-icon {
    color: #1F4E79;
}

.role-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.role-option {
    flex: 1;
    position: relative;
}

.role-input {
    display: none;
}

.role-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: white;
    border: 2px solid var(--input-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.role-label i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #9ca3af;
}

.role-label span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.role-input:checked+.role-label {
    border-color: #1F4E79;
    background: rgba(31, 78, 121, 0.05);
}

.role-input:checked+.role-label i,
.role-input:checked+.role-label span {
    color: #1F4E79;
}

.btn-auth {
    background: linear-gradient(135deg, #1F4E79 0%, #163a5c 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 20px -5px rgba(31, 78, 121, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(31, 78, 121, 0.5);
    background: linear-gradient(135deg, #2b6cb0 0%, #1a4971 100%);
}

.btn-auth:active {
    transform: translateY(0);
}

.btn-auth:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--input-border);
}

.auth-link {
    color: #1F4E79;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.auth-link:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* Remember Me Checkbox */
.remember-me-container {
    margin: 0.5rem 0;
}

.remember-me-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.remember-me-checkbox {
    width: 18px;
    height: 18px;
    margin-right: 0.75rem;
    cursor: pointer;
    accent-color: #1F4E79;
}

.remember-me-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.remember-me-text i {
    color: #7FD1C9;
    font-size: 0.95rem;
}

.remember-me-label:hover .remember-me-text {
    color: var(--text-primary);
}

/* Input Error State */
.auth-input.error {
    border-color: #ef4444;
    background-color: #fef2f2;
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}

.auth-input.error:focus {
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.2);
}

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

/* Password Toggle Icon */
.password-group {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.toggle-password:hover {
    color: #1F4E79;
    transform: translateY(-50%) scale(1.1);
}

.toggle-password:active {
    transform: translateY(-50%) scale(0.95);
}

/* Modern Centered Notifications */
.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    padding: 2.5rem 3rem;
    background: white;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.25rem;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    min-width: 350px;
    max-width: 450px;
    text-align: center;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.notification.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    pointer-events: auto;
}

.notification i {
    font-size: 4rem !important;
    margin-bottom: 0.5rem;
    animation: iconPulse 0.6s ease-out;
}

.notification span {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
}

.notification.success {
    border: 3px solid #10b981;
    background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
}

.notification.success i {
    color: #10b981;
}

.notification.error {
    border: 3px solid #ef4444;
    background: linear-gradient(135deg, #ffffff 0%, #fef2f2 100%);
}

.notification.error i {
    color: #ef4444;
}

@keyframes iconPulse {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 78, 121, 0.95);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
    backdrop-filter: blur(5px);
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-bottom: 1.5rem;
}

.loading-text {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}