/* assets/css/auth.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body.auth-body {
    background-color: #f8f9fa;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1.5rem;
}

.auth-wrapper {
    width: 100%;
    max-width: 450px;
}

.auth-card {
    background-color: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    padding: 2.5rem;
    transition: box-shadow 0.3s ease;
}

.auth-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-logo {
    max-height: 70px;
    margin-bottom: 1rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    font-size: 1rem;
    color: #6c757d;
}

.form-control-auth {
    height: 50px;
    padding: 0 1.25rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control-auth:focus {
    border-color: #5b8c6c;
    box-shadow: 0 0 0 0.25rem rgba(91, 140, 108, 0.25);
    background-color: #fff;
}

.form-select-auth {
    height: 50px;
    padding: 0 1.25rem;
    font-size: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1.25rem center;
    background-size: 16px 12px;
}

.form-select-auth:focus {
    border-color: #5b8c6c;
    box-shadow: 0 0 0 0.25rem rgba(91, 140, 108, 0.25);
}


.btn-auth {
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background-color: #5b8c6c;
    border-color: #5b8c6c;
    color: #fff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-auth:hover {
    background-color: #4a7c5d;
    border-color: #4a7c5d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(91, 140, 108, 0.3);
}

.btn-auth-google {
    height: 50px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    background-color: #fff;
    border-color: #ced4da;
    color: #212529;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-auth-google:hover {
    border-color: #adb5bd;
    background-color: #f8f9fa;
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    position: relative;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 25px);
    height: 1px;
    background-color: #dee2e6;
}

.auth-divider::before {
    left: 0;
}

.auth-divider::after {
    right: 0;
}

.auth-footer-link {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.auth-footer-link a {
    color: #5b8c6c;
    font-weight: 500;
    text-decoration: none;
}

.auth-footer-link a:hover {
    text-decoration: underline;
}

.password-toggle-icon {
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6c757d;
}

.turnstile-container {
    display: flex;
    justify-content: center;
    margin: 1.5rem 0;
}

.auth-back-link {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    color: #6c757d;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.auth-back-link:hover {
    color: #212529;
}

/* Password strength meter */
.password-strength-meter {
    height: 5px;
    background-color: #e9ecef;
    border-radius: 5px;
    margin-top: 0.5rem;
    overflow: hidden;
}

.strength-bar-fill {
    height: 100%;
    width: 0;
    background-color: #dc3545;
    transition: width 0.3s, background-color 0.3s;
}

.strength-bar-fill.weak { width: 25%; background-color: #dc3545; }
.strength-bar-fill.fair { width: 50%; background-color: #fd7e14; }
.strength-bar-fill.good { width: 75%; background-color: #ffc107; }
.strength-bar-fill.strong { width: 100%; background-color: #198754; }

.strength-text {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    color: #6c757d;
}

/* Step indicator for forget password */
.step-indicator-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #e9ecef;
    border: 2px solid #e9ecef;
    color: #6c757d;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background-color: #fff;
    border-color: #5b8c6c;
    color: #5b8c6c;
}

.step-item.completed .step-circle {
    background-color: #5b8c6c;
    border-color: #5b8c6c;
    color: #fff;
}

.step-label {
    font-size: 0.875rem;
    margin-top: 0.5rem;
    color: #6c757d;
    font-weight: 500;
}

.step-connector-line {
    height: 2px;
    background-color: #e9ecef;
    flex-grow: 1;
    margin: 0 -20px;
    margin-bottom: 24px; /* align with labels */
    transition: background-color 0.3s ease;
}

.step-connector-line.completed {
    background-color: #5b8c6c;
}

.success-message .icon {
    font-size: 4rem;
    color: #198754;
    margin-bottom: 1rem;
}
