@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,700;1,300&family=Roboto+Slab:wght@300;400&display=swap');

:root {
    --bsr-blue:       #446463;
    --bsr-blue-dark:  #2d4342;
    --bsr-teal:       #82A198;
    --bsr-teal-light: #dde9e7;
    --bsr-grey-100:   #f5f7f7;
    --bsr-grey-200:   #e9ecec;
    --bsr-grey-400:   #adb5bd;
    --bsr-grey-700:   #495057;
    --bsr-text:       #212529;
    --bsr-red:        #c62828;
    --bsr-green:      #2e7d32;
    --bsr-radius:     6px;
    --bsr-shadow:     0 2px 8px rgba(0,0,0,.09);
    --bsr-shadow-lg:  0 4px 20px rgba(0,0,0,.12);
    --bsr-font:         'Roboto', sans-serif;
    --bsr-font-display: 'Roboto Slab', serif;
    --bsr-transition:   all 0.2s ease;
}

/* ── Wrapper & Card ── */
.crp-wrapper {
    max-width: 660px;
    margin: 48px auto;
    padding: 0 16px;
    font-family: var(--bsr-font);
    font-weight: 300;
    color: var(--bsr-text);
}

.crp-card {
    background: #fff;
    border-radius: var(--bsr-radius);
    box-shadow: var(--bsr-shadow-lg);
    overflow: hidden;
}

.crp-card-header {
    background: var(--bsr-blue);
    padding: 28px 36px 24px;
    color: #fff;
}

.crp-card-header h2 {
    margin: 0 0 6px;
    font-family: var(--bsr-font-display);
    font-size: 24px;
    font-weight: 300;
    color: #fff;
}

.crp-card-header p {
    margin: 0;
    font-family: var(--bsr-font);
    font-size: 14px;
    font-weight: 300;
    opacity: 0.85;
    color: #fff;
}

#crp-form {
    padding: 28px 36px 36px;
}

/* ── Notices ── */
.crp-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--bsr-radius);
    border-left: 4px solid transparent;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.5;
    margin: 0 36px 24px;
}

.crp-notice-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.crp-notice-success {
    background: #e8f5e9;
    border-left-color: #43a047;
    color: var(--bsr-green);
    margin: 24px 36px;
}
.crp-notice-success .crp-notice-icon {
    background: #43a047;
    color: #fff;
}

.crp-notice-error {
    background: #ffebee;
    border-left-color: var(--bsr-red);
    color: var(--bsr-red);
    margin-bottom: 24px;
}
.crp-notice-error .crp-notice-icon {
    background: var(--bsr-red);
    color: #fff;
}
.crp-notice-error ul {
    margin: 0;
    padding-left: 18px;
}
.crp-notice-error li { margin-bottom: 3px; }

.crp-notice-info {
    background: var(--bsr-teal-light);
    border-left-color: var(--bsr-blue);
    color: var(--bsr-blue-dark);
    margin: 24px 36px;
}

/* ── Section dividers ── */
.crp-section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--bsr-font);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--bsr-grey-700);
    margin: 28px 0 18px;
}

.crp-section-label:first-of-type { margin-top: 0; }

.crp-section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bsr-grey-200);
}

.crp-optional {
    font-size: 10px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--bsr-grey-400);
}

/* ── Form layout ── */
.crp-row { display: flex; gap: 16px; }
.crp-cols-2 > .crp-field { flex: 1; }

.crp-field {
    margin-bottom: 18px;
}

.crp-field label {
    display: block;
    font-family: var(--bsr-font);
    font-size: 13px;
    font-weight: 700;
    color: var(--bsr-text);
    margin-bottom: 6px;
}

.crp-req { color: var(--bsr-red); margin-left: 2px; }

.crp-field input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--bsr-grey-200);
    border-radius: var(--bsr-radius);
    font-family: var(--bsr-font);
    font-size: 14px;
    font-weight: 300;
    color: var(--bsr-text);
    background: var(--bsr-grey-100);
    transition: var(--bsr-transition);
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
}

.crp-field input:focus {
    border-color: var(--bsr-teal);
    box-shadow: 0 0 0 3px rgba(68,100,99,.15);
    background: #fff;
}

.crp-field input.is-valid   { border-color: var(--bsr-green); }
.crp-field input.is-invalid { border-color: var(--bsr-red); }

.crp-hint {
    display: block;
    font-size: 12px;
    font-weight: 300;
    color: var(--bsr-grey-700);
    margin-top: 5px;
    line-height: 1.4;
}
.crp-hint.success { color: var(--bsr-green); font-weight: 400; }
.crp-hint.error   { color: var(--bsr-red);   font-weight: 400; }

/* ── Password ── */
.crp-pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.crp-pw-wrap input { padding-right: 46px; }

.crp-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--bsr-grey-400);
    display: flex;
    align-items: center;
    transition: color 0.15s;
    line-height: 0;
}
.crp-eye:hover  { color: var(--bsr-blue); }
.crp-eye svg    { width: 18px; height: 18px; }

/* Password strength bar */
.crp-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.crp-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--bsr-grey-200);
    border-radius: 3px;
    overflow: hidden;
}
.crp-strength-bar > div {
    height: 100%;
    width: 0;
    border-radius: 3px;
    transition: width 0.35s ease, background 0.35s ease;
}
#crp-strength-label {
    font-size: 12px;
    font-weight: 400;
    min-width: 64px;
    text-align: right;
    color: var(--bsr-grey-700);
}

/* ── Submit ── */
.crp-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 10px 22px;
    margin-top: 8px;
    background: var(--bsr-blue);
    color: #fff;
    font-family: var(--bsr-font);
    font-size: 15px;
    font-weight: 400;
    border: none;
    border-radius: var(--bsr-radius);
    cursor: pointer;
    transition: background 0.2s ease;
}
.crp-submit:hover  { background: var(--bsr-blue-dark); }
.crp-submit:active { background: var(--bsr-blue-dark); }
.crp-submit svg {
    width: 18px;
    height: 18px;
    transition: transform 0.2s;
}
.crp-submit:hover svg { transform: translateX(3px); }

/* ── Login link ── */
.crp-login-link {
    text-align: center;
    font-size: 13px;
    font-weight: 300;
    color: var(--bsr-grey-700);
    margin: 20px 0 0;
}
.crp-login-link a {
    color: var(--bsr-blue);
    font-weight: 400;
    text-decoration: none;
}
.crp-login-link a:hover {
    color: var(--bsr-blue-dark);
    text-decoration: underline;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .crp-card-header,
    #crp-form { padding: 20px 18px; }
    .crp-row.crp-cols-2 { flex-direction: column; gap: 0; }
    .crp-notice { margin-left: 18px; margin-right: 18px; }
}

@media (max-width: 768px) {
    .crp-wrapper { margin: 24px auto; }
}
