/* Authentication Pages (Login & Register) Styles */

.auth-container {
    min-height: calc(100vh - 200px);
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), 
                url('https://images.unsplash.com/photo-1506905925346-21bda4d32df4?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=2070&q=80') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    margin-top: 20px;
}

.auth-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    background: linear-gradient(135deg, #913c1d, #f7931e);
    color: white;
    padding: 30px;
    text-align: center;
}

.auth-header h2,
.auth-header h3 {
    margin: 0;
    font-weight: 600;
}

.auth-header p {
    margin: 10px 0 0 0;
    opacity: 0.9;
}

.auth-body {
    padding: 40px 30px;
}

.form-floating {
    margin-bottom: 20px;
    position: relative;
}

/* Space for password toggle so input text doesn't overlap icon */
.form-floating .form-control {
    padding-right: 44px;
}

.alert-link {
    font-weight: 600;
    text-decoration: underline;
}

.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #913c1d;
    box-shadow: 0 0 0 0.2rem rgba(145, 60, 29, 0.25);
}

.btn-primary {
    background: linear-gradient(135deg, #913c1d, #f7931e);
    border: none;
    border-radius: 10px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #7a3318, #e68a1a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(145, 60, 29, 0.3);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.step {
    display: none;
}

.step.active {
    display: block;
}

.alert {
    border-radius: 10px;
    border: none;
    margin-bottom: 20px;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
}

.register-link,
.login-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.register-link a,
.login-link a {
    color: #913c1d;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.register-link a:hover,
.login-link a:hover {
    color: #f7931e;
    text-decoration: underline;
}

.back-link {
    text-align: center;
    margin-top: 15px;
}

.back-link a {
    color: #913c1d;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.back-link a:hover {
    color: #f7931e;
}

.user-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
}

.user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #913c1d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    margin: 0 auto 10px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #913c1d;
    cursor: pointer;
    z-index: 10;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #f7931e;
}

.form-check {
    margin-bottom: 20px;
}

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

.form-check-label a {
    color: #913c1d;
    text-decoration: none;
}

.form-check-label a:hover {
    text-decoration: underline;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875em;
    color: #dc3545;
}

.is-invalid {
    border-color: #dc3545;
}

.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.info-box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid #913c1d;
}

.info-box i {
    color: #913c1d;
    margin-right: 10px;
}

.info-box ul {
    margin-top: 10px;
    padding-left: 20px;
}

.info-box ul li {
    margin-bottom: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-container {
        padding: 40px 15px;
        min-height: calc(100vh - 150px);
    }
    
    .auth-body {
        padding: 30px 20px;
    }
    
    .auth-header {
        padding: 25px 20px;
    }
}
