﻿

.change-password-title {
    font-family: 'Poppins', sans-serif;
    font-size: 22px;
    font-weight: 600;
    color:#d72f2f;
    margin-bottom: 24px;
}

.change-password-wrapper {
    max-width: 520px;
    background: #ffffff;
    border-radius: 20px;
    margin-bottom:150px;
    padding: 0px;
}

/* ── Alerts ── */
.cp-alert {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.cp-alert--info {
    background-color: #e3f2fd;
    border: 1px solid #2196f3;
    color: #1976d2;
}

.cp-alert--success {
    background-color: #e8f5e9;
    border: 1px solid #4caf50;
    color: #2e7d32;
}

.cp-alert--danger {
    background-color: #ffebee;
    border: 1px solid #f44336;
    color: #c62828;
}

/* ── Validation summary ── */
.cp-validation-summary {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #c62828;
    margin-bottom: 16px;
}

/* ── Form layout ── */
#changePasswordForm {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cp-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cp-label {
    font-size: 16px;
    font-family: "Poppins";
    color: #333333;
}

/* ── Input ── */
.cp-input-wrapper {
    position: relative;
    width: 80%;
}

.cp-input {
    width: 100%;
    height: 60px;
    padding: 0 52px 0 20px;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    background: #f1f1f1;
    border: 1px solid #d1d1d1;
    border-radius: 16px;
    color: #1a1a1a;
    transition: outline 0.15s, background 0.15s;
}

    .cp-input::placeholder {
        color: #999999;
    }

    .cp-input:focus {
        outline: 2px solid #d72f2f;
        outline-offset: 0;
        background: #ffffff;
        border-color: transparent;
        box-shadow: none;
    }

    .cp-input.input-error {
        border: 2px solid #d72f2f;
        outline: none;
    }

/* ── Eye toggle ── */
.cp-toggle-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #7d7d7d;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
    z-index: 1;
}

    .cp-toggle-btn:hover {
        color: #d72f2f;
    }

    .cp-toggle-btn i {
        font-size: 16px;
        pointer-events: none;
    }

/* ── Field error ── */
.cp-field-error {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #c62828;
}

/* ── Buttons ── */
.cp-button-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 4px;
}

.cp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 52px;
    padding: 0 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

/* Primary — filled red, matches .button-primary from login */
.cp-btn--primary {
    background: #d72f2f;
    color: #ffffff;
    border: 1px solid #d72f2f;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

    .cp-btn--primary:hover {
        background: #b82525;
        border-color: #b82525;
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(215, 47, 47, 0.3);
    }

    .cp-btn--primary:disabled {
        background: #dddddd;
        border-color: #dddddd;
        color: #7d7d7d;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* Secondary — outlined red, matches .button-secondary from login */
.cp-btn--secondary {
    background: transparent;
    color: #d72f2f;
    border: 1px solid #d72f2f;
}

    .cp-btn--secondary:hover {
        background: rgba(215, 47, 47, 0.06);
    }

/* Button arrow icon — white on primary */
.cp-btn-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
}

/* ── Responsive ── */
@media screen and (max-width: 600px) {
    .change-password-wrapper {
        padding: 24px 20px;
    }

    .cp-input {
        height: 52px;
        font-size: 14px;
    }

    .cp-btn {
        height: 46px;
        font-size: 14px;
        padding: 0 24px;
    }
}

@media screen and (max-width: 400px) {
    .cp-button-row {
        flex-direction: column;
        align-items: stretch;
    }

    .cp-btn {
        width: 100%;
    }
}
