﻿
/* ============================================================
   CLOUDX - RESET PASSWORD
   File: wwwroot/css/Resetpwd/index.css
   ============================================================ */

:root {
    --rp-navy: #122b55;
    --rp-blue: #2563eb;
    --rp-blue-dark: #1d4ed8;
    --rp-background: #f6f8fc;
    --rp-white: #ffffff;
    --rp-text: #172b4d;
    --rp-muted: #69778d;
    --rp-border: #e2e8f0;
    --rp-success: #15803d;
    --rp-danger: #dc2626;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--rp-background);
    color: var(--rp-text);
    font-family: "Inter", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    text-decoration: none;
}

[hidden] {
    display: none !important;
}

/* ============================================================
   PAGE LAYOUT
   ============================================================ */

.rp-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ============================================================
   HEADER
   ============================================================ */

.rp-header {
    height: 84px;
    padding: 0 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--rp-white);
    border-bottom: 1px solid var(--rp-border);
}

.rp-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--rp-navy);
}

    .rp-brand img {
        display: block;
        max-width: 135px;
        max-height: 43px;
        object-fit: contain;
    }

.rp-brand-separator {
    width: 1px;
    height: 27px;
    background: #d8e0ec;
}

.rp-brand strong {
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -1px;
}

    .rp-brand strong span {
        color: var(--rp-blue);
    }

.rp-header-back {
    color: var(--rp-navy);
    font-size: 13px;
    font-weight: 600;
    transition: color 0.2s ease;
}

    .rp-header-back:hover {
        color: var(--rp-blue);
    }

/* ============================================================
   MAIN CONTENT
   ============================================================ */

.rp-main {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 65px 20px 75px;
}

.rp-container {
    width: 100%;
    max-width: 510px;
}

.rp-heading {
    text-align: center;
    margin-bottom: 35px;
}

.rp-eyebrow {
    color: var(--rp-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.rp-heading h1 {
    color: var(--rp-navy);
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -1.25px;
    margin: 13px 0;
}

.rp-heading p {
    max-width: 390px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.8;
    color: var(--rp-muted);
}

/* ============================================================
   PROGRESS INDICATOR
   ============================================================ */

.rp-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.rp-progress-step {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 9px;
    color: #99a5b6;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.rp-step-number {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--rp-border);
    border-radius: 50%;
    background: var(--rp-white);
    color: #94a3b8;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.rp-progress-step.active {
    color: var(--rp-blue);
}

    .rp-progress-step.active .rp-step-number {
        background: var(--rp-blue);
        color: white;
        border-color: var(--rp-blue);
    }

.rp-progress-step.completed {
    color: var(--rp-success);
}

    .rp-progress-step.completed .rp-step-number {
        background: #dcfce7;
        color: var(--rp-success);
        border-color: #bbf7d0;
    }

.rp-progress-line {
    width: 72px;
    height: 1px;
    background: #dce3ed;
    margin: 0 15px 23px;
}

/* ============================================================
   FORM CARD
   ============================================================ */

.rp-card {
    background: var(--rp-white);
    border: 1px solid var(--rp-border);
    border-radius: 17px;
    padding: 38px;
    box-shadow: 0 12px 45px rgba(18, 43, 85, 0.055);
}

.rp-step-section {
    width: 100%;
    animation: rp-fade-in 0.25s ease;
}

.rp-section-icon {
    width: 51px;
    height: 51px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #eff6ff;
    color: var(--rp-blue);
    font-size: 25px;
    font-weight: 700;
    margin-bottom: 23px;
}

.rp-step-section h2 {
    margin: 0 0 10px;
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.7px;
    color: var(--rp-navy);
}

.rp-description {
    color: var(--rp-muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 0 0 25px;
}

.rp-email-display {
    display: block;
    color: var(--rp-navy);
    font-size: 13px;
    overflow-wrap: anywhere;
    margin: -14px 0 23px;
}

/* ============================================================
   FORM FIELDS
   ============================================================ */

.rp-field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin-bottom: 22px;
}

    .rp-field label {
        color: var(--rp-text);
        font-size: 12px;
        font-weight: 700;
    }

    .rp-field input {
        width: 100%;
        height: 49px;
        border: 1px solid #dbe3ee;
        border-radius: 9px;
        background: #fff;
        color: var(--rp-navy);
        font-size: 13px;
        padding: 0 15px;
        outline: none;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .rp-field input::placeholder {
            color: #9da9ba;
        }

        .rp-field input:focus {
            border-color: var(--rp-blue);
            box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
        }

    .rp-field small {
        font-size: 11px;
        color: var(--rp-muted);
    }

#resetOtp {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 7px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

/* ============================================================
   PRIMARY BUTTON
   ============================================================ */

.rp-primary-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 49px;
    padding: 13px 18px;
    border: none;
    border-radius: 9px;
    color: #fff;
    background: var(--rp-navy);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    transition: background 0.2s ease, transform 0.2s ease;
}

    .rp-primary-button:hover:not(:disabled) {
        background: var(--rp-blue);
        transform: translateY(-1px);
    }

    .rp-primary-button:disabled {
        cursor: not-allowed;
        opacity: 0.65;
    }

.rp-secondary-button {
    display: block;
    width: 100%;
    padding: 12px 16px;
    color: var(--rp-navy);
    background: #fff;
    border: 1px solid var(--rp-border);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s ease;
}

    .rp-secondary-button:hover {
        background: #f8fafc;
    }

.rp-text-button {
    padding: 0;
    border: none;
    background: transparent;
    color: var(--rp-blue);
    font-size: 12px;
    font-weight: 700;
}

    .rp-text-button:hover:not(:disabled) {
        text-decoration: underline;
    }

    .rp-text-button:disabled {
        color: #94a3b8;
        cursor: not-allowed;
    }

/* ============================================================
   OTP AND HELP TEXT
   ============================================================ */

.rp-help-text {
    color: var(--rp-muted);
    text-align: center;
    font-size: 11px;
    line-height: 1.7;
    margin: 20px 0 0;
}

.rp-otp-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0;
}

    .rp-otp-actions span {
        color: var(--rp-muted);
        font-size: 11px;
    }

/* ============================================================
   STATUS MESSAGES
   ============================================================ */

.rp-message {
    padding: 13px 15px;
    margin-top: 22px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.7;
}

    .rp-message.success {
        background: #f0fdf4;
        border-color: #bbf7d0;
        color: #166534;
    }

    .rp-message.error {
        background: #fef2f2;
        border-color: #fecaca;
        color: #b91c1c;
    }

/* ============================================================
   SUCCESS SCREEN
   ============================================================ */

.rp-success-section {
    text-align: center;
}

.rp-success-icon {
    width: 65px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border-radius: 50%;
    color: var(--rp-success);
    background: #dcfce7;
    font-size: 30px;
    font-weight: 800;
}

.rp-success-section .rp-description {
    margin-bottom: 15px;
}

.rp-login-button {
    margin-top: 27px;
}

/* ============================================================
   SECURITY NOTICE
   ============================================================ */

.rp-security-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 25px;
    padding: 16px 18px;
    border: 1px solid #dce7f7;
    border-radius: 11px;
    background: #eff6ff;
}

.rp-security-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #dbeafe;
    color: var(--rp-blue);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 800;
}

.rp-security-note p {
    margin: 0;
    color: #49617e;
    font-size: 11px;
    line-height: 1.8;
}

.rp-bottom-link {
    margin-top: 28px;
    text-align: center;
    color: var(--rp-muted);
    font-size: 12px;
}

    .rp-bottom-link a {
        color: var(--rp-blue);
        font-weight: 700;
        margin-left: 4px;
    }

        .rp-bottom-link a:hover {
            text-decoration: underline;
        }

/* ============================================================
   FOOTER
   ============================================================ */

.rp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 22px 7%;
    border-top: 1px solid var(--rp-border);
    background: #fff;
    color: var(--rp-muted);
    font-size: 11px;
}

/* ============================================================
   ANIMATION
   ============================================================ */

@keyframes rp-fade-in {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 600px) {

    .rp-header {
        height: 72px;
        padding: 0 20px;
    }

    .rp-brand img {
        max-width: 95px;
    }

    .rp-brand strong {
        font-size: 19px;
    }

    .rp-header-back {
        font-size: 11px;
    }

    .rp-main {
        padding: 42px 16px 55px;
    }

    .rp-heading h1 {
        font-size: 27px;
    }

    .rp-heading p {
        font-size: 12px;
    }

    .rp-card {
        padding: 28px 22px;
        border-radius: 13px;
    }

    .rp-progress-line {
        width: 27px;
        margin-left: 8px;
        margin-right: 8px;
    }

    .rp-progress-step {
        font-size: 10px;
    }

    .rp-step-number {
        width: 31px;
        height: 31px;
    }

    .rp-step-section h2 {
        font-size: 21px;
    }

    .rp-footer {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 360px) {

    .rp-card {
        padding: 24px 17px;
    }

    .rp-progress-line {
        width: 15px;
    }

    .rp-otp-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
