/* Modern Authentication Styles */
/* Uses brand colors: Primary: #cf7a30 (orange), Secondary: #6c757d (gray) */

.login-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.login-header {
    background: linear-gradient(135deg, #cf7a30 0%, #e67e22 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.login-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.login-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.login-body {
    padding: 2.5rem;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating .form-control {
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 1rem 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-floating .form-control:focus {
    border-color: #cf7a30;
    box-shadow: 0 0 0 0.2rem rgba(207, 122, 48, 0.25);
    background: white;
}

.form-floating label {
    color: #6c757d;
    font-weight: 500;
}

.form-floating .form-control:focus ~ label,
.form-floating .form-control:not(:placeholder-shown) ~ label {
    color: #cf7a30;
    font-weight: 600;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-check {
    margin: 0;
}

.form-check-input {
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    width: 1.2em;
    height: 1.2em;
    margin-top: 0.1em;
}

.form-check-input:checked {
    background-color: #cf7a30;
    border-color: #cf7a30;
}

.form-check-label {
    color: #6c757d;
    font-weight: 500;
    margin-left: 0.5rem;
}

.forgot-link {
    color: #cf7a30;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #b86a28;
    text-decoration: underline;
}

.btn-login {
    background: linear-gradient(135deg, #cf7a30 0%, #e67e22 100%);
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(207, 122, 48, 0.3);
    width: 100%;
    margin-bottom: 1.5rem;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(207, 122, 48, 0.4);
    color: white;
}

.divider {
    position: relative;
    text-align: center;
    margin: 2rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: #6c757d;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.register-card {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.register-card h4 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.register-card p {
    color: #6c757d;
    margin-bottom: 1rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-register {
    background: #6c757d;
    border: none;
    border-radius: 12px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
    width: 100%;
    text-decoration: none;
    display: inline-block;
}

.btn-register:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
    color: white;
    text-decoration: none;
}

.error-message {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: #721c24;
    font-size: 0.9rem;
}

/* Register page specific styles */
.register-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.register-card-main {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
}

.register-header {
    background: linear-gradient(135deg, #cf7a30 0%, #e67e22 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.register-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.register-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.register-body {
    padding: 2.5rem;
}

/* Forgot password page styles */
.forgot-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #cf7a30 0%, #e67e22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
}

.forgot-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    max-width: 450px;
    width: 100%;
}

.forgot-header {
    background: linear-gradient(135deg, #cf7a30 0%, #e67e22 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.forgot-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.forgot-header p {
    margin: 0.5rem 0 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.forgot-body {
    padding: 2.5rem;
}

/* Success message styles */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1.5rem;
    color: #155724;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 576px) {
    .login-container,
    .register-container,
    .forgot-container {
        padding: 1rem;
    }
    
    .login-card,
    .register-card-main,
    .forgot-card {
        margin: 0 1rem;
    }
    
    .login-body,
    .register-body,
    .forgot-body {
        padding: 2rem 1.5rem;
    }
    
    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    margin: auto;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-loading-spinner 1s ease infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes button-loading-spinner {
    from {
        transform: translate(-50%, -50%) rotate(0turn);
    }
    to {
        transform: translate(-50%, -50%) rotate(1turn);
    }
} 