/* Page Redesign: Change Password (Compact & Focused) */

/* Global Reset for alignment */
* {
    box-sizing: border-box;
}

/* 1. Wrapper to center everything */
.change-pass-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8fafc;
    padding: 20px;
}

/* 2. The Card Itself */
.change-pass-card {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    /* Narrower than login */
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    text-align: right;
    /* Ensure RTL alignment */
}

/* 3. Header & Logo (Visual Balance) */
.auth-header-logo {
    display: block;
    margin: 0 auto 20px auto;
    height: 80px;
    /* Increased from 50px per request */
    width: auto;
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    text-align: center;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* 4. Inputs & Form Elements */
.form-group {
    position: relative;
    /* Context for absolute icon */
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 1rem;
    color: #334155;
    transition: all 0.2s;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #d97706;
    /* Gold accent */
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.1);
}

/* Style the Read-Only Email Field */
.form-control[readonly] {
    background-color: #f1f5f9;
    color: #64748b;
    border-color: #e2e8f0;
    cursor: not-allowed;
}

/* Password Toggle Icon Positioning */
.password-toggle-icon {
    position: absolute;
    left: 12px;
    /* Anchor to LEFT side in RTL */
    top: 50%;
    /* Center Vertically */
    transform: translateY(-50%);
    /* Perfect Center */
    cursor: pointer;
    color: #94a3b8;
    z-index: 50;
    /* Higher Z-Index to ensure clickability */
    width: 20px;
    height: 20px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle-icon:hover {
    color: #d97706;
}

/* Add padding to input so text doesn't hit the icon */
.form-control.has-icon {
    padding-left: 40px;
}

/* Validation Messages */
.text-danger {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 5px;
    display: block;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 14px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s;
}

.btn-submit:hover {
    background: #1e293b;
    transform: translateY(-2px);
}

/* 5. Footer Adjustment (Logo Right, Link Left) */
.auth-footer-row {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Spreads items apart */
}

/* The Logo */
.footer-logo-img {
    height: 45px;
    /* Increased from 24px per request */
    opacity: 0.8;
    filter: grayscale(100%);
}

/* The "Cancel/Return" Link */
.footer-back-link {
    font-size: 0.85rem;
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s;
}

.footer-back-link:hover {
    color: #2563eb;
}

/* ############################ */

/* ... (Keep existing layout styles) ... */

/* FIX: Top Logo Size - Reduced for better balance */
.auth-header-logo {
    display: block;
    margin: 0 auto 20px auto;
    height: 60px; /* Changed from 80px to 60px */
    width: auto;
}

/* ... */

/* FIX: Eye Icon Logic */
.password-toggle-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #94a3b8;
    z-index: 50;
    width: 30px; /* Increased clickable area slightly */
    height: 30px;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none; /* Remove focus outline */
}

/* Make clicks pass through the SVG to the button */
.password-toggle-icon svg {
    pointer-events: none;
}

.password-toggle-icon:hover {
    color: #d97706; /* Gold hover effect */
}

/* HIDE Native Browser Eye Icon */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none !important;
}

/* ... (Keep footer styles, they are correct for Right/Left alignment) ... */
