﻿/* Password Forms Shared Styling */

.password-form-container {
    display: flex;
    justify-content: center; /* center card horizontally */
    align-items: flex-start; /* keep top aligned */
    width: 100%;
    min-height: 100vh;
    padding: 4rem 1rem;
    font-family: 'Space Mono', monospace;
    background: #efefef;
}

/* 🔥 New Card Wrapper */
.password-form-card {
    width: 100%;
    max-width: 380px;
    padding: 2rem;
    background: white;
    border-radius: 6px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

    /* Title */
    .password-form-card h3 {
        font-size: 1.2rem;
        color: #0f111a;
        font-weight: bold;
        letter-spacing: 0.5px;
        margin: 0;
    }

    /* Description */
    .password-form-card .description {
        font-size: 0.9rem;
        color: #555;
        line-height: 1.4;
        margin: 0;
    }

    /* Form group */
    .password-form-card .form-group {
        display: flex;
        flex-direction: column;
    }

    /* Inputs */
    .password-form-card input[type="email"],
    .password-form-card input[type="password"],
    .password-form-card input[type="text"] {
        width: 100%;
        padding: 0.6rem;
        font-size: 1.1rem;
        border: 0;
        background-color: #d8d8d8;
        color: #0f111a;
        outline: none;
        transition: all 0.2s ease;
    }

    .password-form-card input:focus {
        border: 1px solid #0f111a;
    }

    /* Button */
    .password-form-card button {
        padding: 0.7rem 1.2rem;
        font-family: 'Space Mono', monospace;
        font-size: 1.1rem;
        background-color: #191d2b;
        color: #ddd;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

        .password-form-card button:hover {
            background-color: #272e45;
        }

        .password-form-card button:disabled {
            background-color: #2b2f3f;
            color: #666;
            cursor: not-allowed;
        }

    /* Messages */
    .password-form-card p.success {
        color: #3ea32c;
    }

    .password-form-card p.error {
        color: #ff5555;
    }

    .password-form-card .password-checklist {
        list-style: none;
        padding-left: 0;
        margin-top: 0.5rem;
    }

        .password-form-card .password-checklist li {
            margin-bottom: 0.3rem;
            color: #ff5555; /* red for invalid */
            font-size: 0.9rem;
        }

            .password-form-card .password-checklist li.valid {
                color: #3ea32c; /* green for valid */
            }
