/* ==========================================================
   FORMS
========================================================== */

/* ------------------------------ */
/* LOGIN PANEL - GOLDEN PARCHMENT */
/* ------------------------------ */
.login-layout {
    display: flex;
    max-width: 900px;
    margin: 0 auto;
    position: relative;

    border: 1px solid #d4af37;
    border-radius: 6px;
    overflow: hidden;
    
    transition: transform 0.25s ease, box-shadow 0.25s ease;

    box-shadow:
        0 0 0 2px rgba(212,175,55,0.18),   /* soft gold frame */
        0 10px 28px rgba(0,0,0,0.28);      /* depth shadow */
}

.login-layout > div {
    padding: 28px;
}

.login-layout:hover {
    transform: translateY(-4px);

    box-shadow:
        0 0 0 2px rgba(212,175,55,0.22),
        0 16px 40px rgba(0,0,0,0.35);
}

.login-layout::after {
    content: "";
    position: absolute;
    inset: 0;

    pointer-events: none;

    box-shadow:
        inset 0 0 30px rgba(212,175,55,0.08);
}

.login-container {
    flex: 0 0 40%;
    padding: 22px;
    background: linear-gradient(to bottom, #fdf6e3 0%, #f5ebd3 100%);
    position: relative;
    text-align: center;
    font-family: 'Garamond', serif;
}

.login-container::after {
    content: "";
    position: absolute;

    right: -1px;      /* sits exactly between the columns */
    top: 15%;
    height: 70%;
    width: 3px;

    background: linear-gradient(
        to bottom,
        transparent,
        #c9a227,
        #e0c36f,
        #c9a227,
        transparent
    );
}

.login-container form {
    max-width: 300px;
    margin: 0 auto;
}

/* Heading */
.login-container h2 {
    text-align: center;
    margin-top:0;
    margin-bottom: 16px;
    font-family: 'Cinzel', serif;
    color: #3b2f1f; /* deep brown for classic parchment look */
    letter-spacing: 1px;
    font-size: 21px;
}

.login-title-divider {
    width: 90px;
    height: 2px;
    margin: 10px auto 18px auto;

    background: linear-gradient(
        to right,
        transparent,
        #c9a227,
        #e0c36f,
        #c9a227,
        transparent
    );
}

/* Login Form */
.login-form {
    margin-top: 10px;
}

/* rows */
.login-form-row {
    margin-bottom: 12px;
    text-align: left;
}

.login-form-row label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #3b2f1f;
    font-size: 14px;
}

/* inputs */
.login-input {
    width: 100%;
    padding: 8px;
    border: 1px solid #bfa66f; /* soft gold border for inputs */
    border-radius: 6px;
    font-size: 13px;
    font-family: 'Garamond', serif;
    background-color: #fff8e7; /* light parchment input */
}

/* focus */
.login-input:focus {
    outline: none;
    border-color: #c9a227; /* gold */
    box-shadow: 0 0 0 2px rgba(201,162,39,0.35); /* soft gold glow */
    background-color: #fffdf4; /* slightly lighter parchment */
}

/* checkbox row */
.login-remember {
    display: flex;
    align-items: center;
    gap: 6px; /* space between checkbox and label */
    margin-bottom: 12px;
}

.login-remember-input[type="checkbox"] {
    width: 15px;  /* optional: control size */
    height: 15px;
}

/* Button */
.login-submit {
    width: 55%;
    padding: 10px;
    background: #d4af37; /* gold button */
    color: #3b2f1f; /* dark text for contrast */
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.login-submit:hover {
    background: #c2992e; /* slightly darker gold on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.login-links{
    text-align:center;
    margin-top:14px;
}

.login-links a{
    display:block;
    color: #333;
    font-weight: bold;
    margin-top: 4px;
}
.login-links a:hover {
    text-decoration: underline;
    color: #b22222;
}

/* ------------------------ */
/* Google reCAPTCHA Styling */
/* ------------------------ */
.g-recaptcha {
    /* center the captcha */
    display: flex;
    justify-content: center;
    margin: 16px 0;
    transform: scale(0.9);
    transform:center;
    padding: 10px;
}

/* ------------------------ */
/* LOGIN INFO PANEL STYLING */
/* ------------------------ */
.login-info {
    flex: 0 0 60%;
    padding: 25px;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.35), transparent 45%),
        radial-gradient(circle at 80% 80%, rgba(0,0,0,0.05), transparent 50%),
        linear-gradient(to bottom, #f8f4e6, #efe3c4);

    font-family: "Crimson Text", serif;
    position: relative;
}

.login-info::after {
    content: "";
    position: absolute;

    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 220px;
    height: 220px;

    background-image: url("/assets/images/I674.svg");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;

    opacity: 0.06;
    pointer-events: none;
}

.login-info h3 {
    font-family: "Cinzel", serif;
    margin-bottom: 12px;
}

.login-info h3::after {
    content: "";
    display: block;

    width: 100px;
    height: 2px;

    margin: 10px 0 18px 0;

    background: linear-gradient(
        to right,
        transparent,
        #c9a227,
        #e0c36f,
        #c9a227,
        transparent
    );
}

.login-info p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.5;
}

.register-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 16px;

    background: #1f2a44;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.register-btn:hover {
    background: #162036;
}

/* ------------------------ */
/* MFA VERIFICATION STYLING */
/* ------------------------ */
.mfa-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 20px 0;
}

.mfa-digit {
    width: 44px;
    height: 50px;
    text-align: center;
    font-size: 22px;
    font-weight: bold;

    border: 1px solid #bfa66f;
    border-radius: 6px;
    background: #fff8e7;

    font-family: "Cinzel", serif;
}

.mfa-digit:focus {
    outline: none;
    border-color: #c9a227;
    box-shadow: 0 0 0 2px rgba(201,162,39,0.35);
}

/* ==============================
   PASSWORD REQUIREMENTS
============================== */

.profile-password-section {
    margin-top: 10px;
}

/* requirements list */
.password-requirements {
    list-style: none;
    padding-left: 0;
    margin-top: 10px;
    font-size: 13px;
}

.password-requirements li {
    margin-bottom: 4px;
    color: #777;
    position: relative;
    padding-left: 20px;
}

/* valid state */
.password-requirements li.valid {
    color: #2e7d32;
}

/* ==============================
   STRENGTH METER
============================== */

.password-strength {
    margin-top: 10px;
}

.strength-bar {
    display: flex;
    gap: 5px;
    margin-bottom: 5px;
}

.strength-segment {
    flex: 1;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
}

/* strength colors */
.strength-segment.active.weak {
    background: #c62828;
}

.strength-segment.active.medium {
    background: #f9a825;
}

.strength-segment.active.strong {
    background: #2e7d32;
}

.strength-text {
    font-size: 12px;
    color: #555;
}

/* ----------------------------------
DANGER ZONE - delete account
---------------------------------- */
.profile-danger {
    margin-top: 40px;
    padding: 22px;

    background: linear-gradient(to bottom, #fdf6e3 0%, #f5ebd3 100%);
    border: 1px solid #d4af37;
    border-radius: 6px;

    box-shadow:
        inset 0 0 30px rgba(212,175,55,0.08),
        0 8px 20px rgba(0,0,0,0.15);

    text-align: left;
}

.profile-danger h3 {
    font-family: "Cinzel", serif;
    color: #7a1f1f; /* muted noble red */
    margin-bottom: 8px;
}

.profile-danger h3::after {
    content: "";
    display: block;
    width: 120px;
    height: 2px;
    margin-top: 6px;

    background: linear-gradient(
        to right,
        transparent,
        #c9a227,
        #e0c36f,
        #c9a227,
        transparent
    );
}

.profile-danger p {
    margin-bottom: 16px;
    line-height: 1.5;
}

.profile-danger .form-group {
    margin-bottom: 16px;
}

.profile-danger label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
}

.profile-danger input {
    width: 100%;
    padding: 8px;
    border: 1px solid #bfa66f;
    border-radius: 6px;
    background-color: #fff8e7;
}

.profile-danger input:focus {
    outline: none;
    border-color: #b22222;

    box-shadow:
        0 0 0 2px rgba(178,34,34,0.25),
        0 0 6px rgba(178,34,34,0.2);

    background-color: #fffdf4;
}

.delete-btn {
    display: inline-block;
    width: 65%;

    padding: 10px;
    margin-top: 10px;

    background: linear-gradient(to bottom, #c94a4a, #a83232);
    color: white;

    border: 1px solid #7a1f1f;
    border-radius: 8px;

    font-weight: bold;
    cursor: pointer;

    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.25s ease;
}

.delete-btn:hover {
    background: linear-gradient(to bottom, #b13d3d, #8f2626);

    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(0,0,0,0.25),
        0 0 10px rgba(178,34,34,0.25);
}





/* ==========================================================
   TABLES
========================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 10px;
    border: 1px solid #e5e5e5;
    text-align: left;
}

th {
    background-color: #f5f5f5;
}

.doc-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 6px;
}

/* ==========================================================
   DOCUMENTS
========================================================== */
.doc-card h3 {
    margin-bottom: 5px;
}