@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/* ----- Global theme ----- */
:root {
    --bg: #0e3040;
    --panel: #124054;
    --text: #e7f3f9;
    --muted: #8fb0c2;
    --accent: #7be3ff;
    --border: rgba(255, 255, 255, .12);
}

/* ----- Sign-in card ----- */
/* .main-content .logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 5px;
} */

/* .logo-text {
    font-weight: 600;
    font-size: 1.4rem;
    color: var(--text);
    letter-spacing: .5px;
    font-family: 'Poppins', sans-serif !important;
} */

#svgGroup {
    stroke: #67809F;
    fill: #67809F;
}

.button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--border);
    padding: .6rem 0;
    margin: .5rem 0;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.button .img {
    width: 28px;
    margin-right: .8rem;
}

.button.google {
    background: #fff;
    color: #1a1a1a;
}

.button.google:hover {
    filter: brightness(.97);
}

.button.apple {
    background: #000;
    color: #fff;
}

.button.apple:hover {
    background: #111;
}

.divider {
    color: var(--muted);
    /* margin: 1rem 0; */
    margin: 0;
    position: relative;
    width: 100%;
}
.divider::before {
    content: "";
    width: 45%;
    height: 1px;
    position: absolute;
    top: 50%;
    left: 0;
    background-color: var(--muted);
    opacity: 0.5;
}
.divider::after {
    content: "";
    width: 45%;
    height: 1px;
    position: absolute;
    top: 50%;
    right: 0;
    background-color: var(--muted);
    opacity: 0.5;
}
.form {
    display: flex;
    flex-direction: column;
    width: 100%;
}

input[type="email"] {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 8px;
    /* padding: .8rem; */
    /* margin-bottom: .8rem; */
    outline: none;
    transition: border-color .2s ease;
}

input[type="email"]:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(123, 227, 255, .15);
}

#next {
    background: var(--accent);
    color: #0b2732;
    border: none;
    border-radius: 24px;
    padding: .6rem 0;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

#next:hover {
    filter: brightness(1.1);
}

.forgot-link {
    margin-top: .6rem;
    color: var(--accent);
    font-size: 13px;
    text-decoration: none;
    align-self: flex-end;
}

.forgot-link:hover {
    text-decoration: underline;
}

.signup {
    color: var(--muted);
    font-size: 14px;
    margin-top: 1rem;
    margin-top: 0;
}

.signup a {
    color: var(--accent);
    text-decoration: none;
}

.signup a:hover {
    text-decoration: underline;
}

.small {
    margin-top: 1rem;
    font-size: 12px;
    color: var(--muted);
}

.small a {
    color: var(--accent);
    text-decoration: none;
}

.small a:hover {
    text-decoration: underline;
}

/* ----- Forgot-password modal ----- */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
}

.modal[aria-hidden="false"] {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .55);
}

.modal-panel {
    position: relative;
    max-width: 420px;
    margin: 10vh auto;
    padding: 22px 20px;
    border-radius: 14px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    font-size: 22px;
    cursor: pointer;
}

.modal-close:hover {
    background: rgba(255, 255, 255, .06);
}

.modal-title {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 600;
}

.modal-sub {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 14px;
}

.modal-form {
    display: grid;
    gap: 10px;
}

.modal-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.modal-form input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(123, 227, 255, .15);
}

.btn-primary {
    padding: 12px 14px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 600;
    background: var(--accent);
    color: #0b2732;
}

.btn-primary:hover {
    filter: brightness(1.05);
}

.modal-msg {
    min-height: 18px;
    font-size: 13px;
}

.modal-msg.success {
    color: #56e39f;
}

.modal-msg.error {
    color: #ff6b6b;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ----- Reset-password page additions ----- */
.reset-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
}

.reset-container {
    background: var(--panel);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, .4);
    width: 420px;
    max-width: 92vw;
    padding: 24px 22px;
    text-align: left;
    border: 1px solid var(--border);
}

.reset-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    justify-content: center;
}

.reset-title {
    font-weight: 600;
    font-size: 1.25rem;
    text-align: center;
    margin-bottom: 6px;
}

.reset-sub {
    color: var(--muted);
    text-align: center;
    margin-bottom: 16px;
    font-size: .95rem;
}

.field {
    display: grid;
    gap: 8px;
    margin: 10px 0 12px;
}

.label {
    font-size: .9rem;
    color: var(--muted);
}

.pw-box {
    position: relative;
}

.pw-input {
    width: 100%;
    padding: 12px 42px 12px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    outline: none;
}

.pw-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(123, 227, 255, .15);
}

.toggle-eye {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    color: var(--text);
    opacity: .8;
    cursor: pointer;
    font-size: .95rem;
}

.strength {
    height: 8px;
    border-radius: 999px;
    background: #203846;
    border: 1px solid var(--border);
    margin-top: 6px;
    overflow: hidden;
}

.strength>span {
    display: block;
    height: 100%;
    width: 0%;
}

.hint {
    font-size: .8rem;
    color: var(--muted);
    margin-top: 6px;
}

.error {
    color: #ff6b6b;
    font-size: .9rem;
    margin-top: 4px;
    min-height: 18px;
}

.success {
    color: #56e39f;
    font-size: .95rem;
    text-align: center;
    margin-top: 6px;
}

.btn-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 6px;
}

.link {
    color: var(--accent);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

.center {
    text-align: center;
}