/**
 * Auth pages: login (CI3-style card) and shared layout for forgot-password.
 */

body.ci3-login-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f7f9;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.ci3-login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 2.25rem 2rem 2rem;
}

.ci3-login-card--center {
    text-align: center;
}

.ci3-login-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.ci3-login-logo img {
    max-width: 120px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.ci3-auth-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem;
    letter-spacing: 0.02em;
}

.ci3-login-label {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
    font-weight: 500;
}

.ci3-input-wrap {
    position: relative;
    margin-bottom: 1.1rem;
}

.ci3-input-wrap .ci3-input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa0a6;
    font-size: 0.95rem;
    z-index: 2;
    pointer-events: none;
}

.ci3-input-wrap .ci3-toggle-pw {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9aa0a6;
    padding: 4px;
    cursor: pointer;
    z-index: 2;
}

.ci3-input-wrap .ci3-toggle-pw:hover {
    color: #5dade2;
}

.ci3-input-wrap input.form-control {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
    border-radius: 8px;
    border: 1px solid #d8dde2;
    height: 46px;
    font-size: 0.95rem;
}

.ci3-input-wrap input.form-control:focus {
    border-color: #5dade2;
    box-shadow: 0 0 0 0.15rem rgba(93, 173, 226, 0.2);
}

.ci3-remember-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.ci3-remember-row label {
    margin: 0;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.ci3-remember-row input[type="checkbox"] {
    margin-right: 6px;
    vertical-align: middle;
}

.ci3-forgot-link {
    color: #5dade2;
    text-decoration: none;
    font-weight: 500;
}

.ci3-forgot-link:hover {
    text-decoration: underline;
    color: #3498db;
}

.ci3-btn-login {
    border: none;
    border-radius: 8px;
    background: #5dade2;
    color: #fff !important;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.15s ease;
}

button.ci3-btn-login {
    display: block;
    width: 100%;
    padding: 0.65rem 1rem;
    margin-bottom: 0.75rem;
}

button.ci3-btn-login:hover {
    background: #4a9fd4;
    color: #fff;
}

button.ci3-btn-login:active {
    background: #3d8ec4;
}

.ci3-btn-login-secondary {
    background: #5dade2;
}

a.ci3-btn-login {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    margin-top: 1rem;
    text-decoration: none;
}

a.ci3-btn-login:hover {
    background: #4a9fd4;
    color: #fff;
}

.ci3-alert {
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.ci3-forgot-lead {
    font-size: 0.95rem;
}

/* Forgot / reset password (Set Up Password) */
body.ci3-forgot-page {
    flex-direction: column;
    gap: 1.5rem;
}

.ci3-forgot-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    text-align: center;
    margin: 0;
    letter-spacing: 0.02em;
}

.ci3-forgot-card {
    text-align: left;
    max-width: 440px;
}

.ci3-forgot-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 0.4rem;
}

.ci3-forgot-card .ci3-input-wrap {
    margin-bottom: 1.25rem;
}

.ci3-btn-forgot-submit {
    display: block;
    width: 100%;
    border: none;
    border-radius: 8px;
    background: #e85d4c;
    color: #fff !important;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.7rem 1rem;
    margin-top: 0.25rem;
    margin-bottom: 1.25rem;
    transition: background 0.15s ease;
    cursor: pointer;
}

.ci3-btn-forgot-submit:hover {
    background: #d64d3d;
    color: #fff;
}

.ci3-btn-forgot-submit:active {
    background: #c04536;
}

.ci3-forgot-back {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
    margin: 0;
}

.ci3-forgot-back a {
    font-weight: 700;
    color: #2c3e50;
    text-decoration: none;
}

.ci3-forgot-back a:hover {
    text-decoration: underline;
    color: #e85d4c;
}
