﻿:root {
    /* Primarios */
    --blue-500: #0090DA;
    --blue-700: #0061A0;
    --green-500: #AACE4E;
    --white: #FFFFFF;
    /* Neutrales */
    --gray-700: #75787B;
    --gray-500: #A7A8AA;
    --gray-300: #D9D9D6;
    --gray-100: #F2F2F2;
    /* Estados */
    --pink-500: #DB0A5B; /* error */
    --teal-500: #00ACA0; /* ok */
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: var(--gray-100);
    color: #111;
}

.page {
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
    overflow: hidden;
    position: relative;
}

.topbar {
    height: 6px;
    background: linear-gradient(90deg, var(--teal-500), var(--green-500));
    margin: -22px -22px 18px;
}

h1 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 900;
}

.muted {
    color: var(--gray-700);
    font-size: 14px;
    margin: 0 0 16px;
    line-height: 1.35;
}

/* Step lock (blocks all buttons/links/inputs while verifying) */
.lock {
    pointer-events: none;
    user-select: none;
    opacity: .92; /* keep readable */
}

    .lock input {
        background: var(--gray-100);
    }

/* Method list */
.methods {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.method {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--gray-700);
    border-radius: 10px;
    padding: 14px;
    background: var(--white);
    cursor: pointer;
    transition: border-color .15s, box-shadow .15s, transform .05s;
}

    .method:hover {
        box-shadow: 0 0 0 3px rgba(0,144,218,.10);
        border-color: var(--blue-500);
    }

    .method:active {
        transform: translateY(1px);
    }

    .method[aria-selected="true"] {
        border-color: var(--blue-500);
        box-shadow: 0 0 0 3px rgba(0,144,218,.16);
    }

.icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    flex: 0 0 auto;
}

.method-title {
    color: var(--blue-700);
    font-weight: 900;
    margin: 0;
    font-size: 14px;
    line-height: 1.1;
}

.method-sub {
    color: var(--gray-700);
    margin: 4px 0 0;
    font-size: 13px;
}

svg {
    stroke: var(--gray-700);
}

.method[aria-selected="true"] svg {
    stroke: var(--blue-700);
}

.hint {
    margin: 8px 0 14px;
    color: var(--gray-700);
    font-size: 13px;
}

/* Notice (same design used everywhere) */
.notice {
    margin-top: 10px;
    border: 2px dashed var(--gray-300);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--white);
}

    .notice.hidden {
        display: none;
    }

    .notice .notice-icon {
        width: 44px;
        height: 44px;
        border-radius: 10px;
        display: grid;
        place-items: center;
        background: var(--gray-100);
        border: 1px solid var(--gray-300);
        flex: 0 0 auto;
        overflow: hidden;
    }

        .notice .notice-icon img {
            width: 24px;
            height: 24px;
            object-fit: contain;
            display: block;
        }

    .notice .notice-text {
        margin: 0;
        font-size: 14px;
        color: #111;
        line-height: 1.35;
        font-weight: 600;
    }

    /* same style; only slight border tint */
    .notice.is-error {
        border-color: rgba(219,10,91,.35);
    }

    .notice.is-ok {
        border-color: rgba(0,172,160,.35);
    }

/* Buttons */
.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
}

button {
    appearance: none;
    border: 0;
    border-radius: 10px;
    height: 44px;
    padding: 0 14px;
    font-weight: 900;
    cursor: pointer;
    transition: background-color .15s, transform .05s, opacity .15s, color .15s, border-color .15s;
}

    button:active {
        transform: translateY(1px);
    }

.btn-primary {
    background: var(--blue-500);
    color: var(--white);
    flex: 1;
    border: 1px solid rgba(0,0,0,.15);
}

    .btn-primary:hover {
        background: var(--blue-700);
    }

    .btn-primary:disabled {
        background: rgba(0,144,218,.60);
        color: rgba(255,255,255,.85);
        cursor: not-allowed;
    }

.btn-secondary {
    background: var(--gray-100);
    color: #111;
    flex: 1;
    border: 1px solid rgba(0,0,0,.10);
}

    .btn-secondary:hover {
        background: var(--gray-300);
    }

.hidden {
    display: none;
}

/* OTP */
.step-title {
    color: var(--blue-700);
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 900;
}

.otp {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin: 16px 0 8px;
}

    .otp input {
        width: 52px;
        height: 56px;
        border-radius: 12px;
        border: 1px solid var(--gray-300);
        background: var(--white);
        text-align: center;
        font-size: 22px;
        outline: none;
        transition: border-color .15s, box-shadow .15s;
    }

        .otp input:focus {
            border-color: var(--blue-500);
            box-shadow: 0 0 0 3px rgba(0,144,218,.18);
        }

.help {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 14px;
}

a.link {
    color: var(--blue-500);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    font-weight: 700;
}

    a.link:hover {
        color: var(--blue-700);
        border-bottom-color: var(--blue-700);
    }

    a.link[aria-disabled="true"] {
        color: var(--gray-500);
        pointer-events: none;
        border-bottom-color: transparent;
    }

.split {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.btn-tertiary {
    background: var(--gray-100);
    border: 1px solid var(--gray-300);
    color: #111;
    font-weight: 900;
    flex: 1;
    border-radius: 10px;
}

    .btn-tertiary:hover {
        background: var(--gray-300);
    }

/* Loading spinner inside notice text */
.inline-spinner {
    width: 16px;
    height: 16px;
    border-radius: 999px;
    border: 2px solid rgba(17,17,17,.20);
    border-top-color: rgba(0,97,160,1);
    display: inline-block;
    animation: spin .8s linear infinite;
    vertical-align: -3px;
    margin-right: 10px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 420px) {
    .otp input {
        width: 44px;
        height: 52px;
    }
}
