/* Shared look for verify_email.php, forgot_password.php and reset_password.php
   (same design as the login / register pages) */

body { background: #dddddd; }

.login-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 24px 16px;
    font-family: 'Poppins', system-ui, sans-serif;
}

.login-card {
    display: grid;
    grid-template-columns: 55% 45%;
    width: 100%;
    max-width: 1000px;
    min-height: 600px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .12);
    overflow: hidden;
    animation: authFadeUp .5s ease backwards;
}
@keyframes authFadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

/* Left: form */
.login-form-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
}
.login-form-side h1 {
    margin: 0 0 10px;
    text-align: center;
    font-size: 2.3rem;
    font-weight: 600;
    color: #000;
}
.login-sub {
    margin: 0 0 24px;
    text-align: center;
    color: #6b7280;
    font-size: .95rem;
    line-height: 1.6;
}
.login-sub strong { color: #111827; font-weight: 500; }

.login-form-side form { display: flex; flex-direction: column; gap: 16px; }

.login-form-side .sr-only {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.login-form-side input[type="text"],
.login-form-side input[type="email"],
.login-form-side input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    height: 56px;
    padding: 0 18px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #efefef;
    font: inherit;
    font-size: 1rem;
    color: #222;
    outline: none;
    transition: border-color .2s, background .2s;
}
.login-form-side input::placeholder { color: #9a9a9a; }
.login-form-side input:focus { background: #fff; border-color: #e0343b; }

/* Big 6-digit code box */
.login-form-side input.login-code {
    height: 64px;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: .5em;
    padding-left: calc(18px + .5em);
}

.login-form-side button[type="submit"] {
    height: 60px;
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    background: #d0141c;
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background .2s, transform .1s;
}
.login-form-side button[type="submit"]:hover  { background: #a80f16; }
.login-form-side button[type="submit"]:active { transform: scale(.99); }
.login-form-side button[type="submit"]:disabled { opacity: .6; cursor: progress; }

.login-hint { margin: -6px 0 0; color: #9ca3af; font-size: .8rem; }

/* Resend row */
.login-form-side form.login-resend {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: #6b7280;
    font-size: .92rem;
}
.login-form-side .login-linkbtn {
    padding: 0;
    border: 0;
    background: none;
    color: #d0141c;
    font: inherit;
    font-weight: 500;
    cursor: pointer;
}
.login-form-side .login-linkbtn:hover { text-decoration: underline; }
.login-fine { margin: 10px 0 0; text-align: center; color: #9ca3af; font-size: .8rem; }

/* Messages */
.login-error,
.login-success {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .92rem;
}
.login-error   { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; }
.login-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #15803d; }

/* Right: red panel */
.login-welcome-side {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    text-align: center;
    color: #fff;
    background: linear-gradient(180deg, #f0555a 0%, #d0141c 100%);
}
.login-welcome-side::before,
.login-welcome-side::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.login-welcome-side::before {
    width: 280px; height: 280px;
    top: -100px; right: -100px;
    background: rgba(255, 255, 255, .13);
}
.login-welcome-side::after {
    width: 210px; height: 210px;
    bottom: -80px; left: -80px;
    background: rgba(255, 255, 255, .09);
}
.login-welcome-side > * { position: relative; z-index: 1; }

.login-welcome-side h2 { margin: 0 0 18px; font-size: 1.9rem; font-weight: 600; }
.login-welcome-side p  { margin: 0 0 28px; max-width: 340px; font-size: 1.1rem; line-height: 1.7; }

.login-welcome-side a.login-signup-btn {
    display: inline-block;
    padding: 18px 44px;
    border-radius: 999px;
    background: #e0343b;
    color: #fff;
    font-size: 1.05rem;
    text-decoration: none;
    transition: background .2s, transform .1s;
}
.login-welcome-side a.login-signup-btn:hover  { background: #c9262d; }
.login-welcome-side a.login-signup-btn:active { transform: scale(.98); }

@media (max-width: 768px) {
    .login-card { grid-template-columns: 1fr; min-height: 0; }
    .login-form-side,
    .login-welcome-side { padding: 36px 24px; }
    .login-form-side { order: 1; }
    .login-welcome-side { order: 2; }
    .login-form-side h1 { font-size: 2rem; }
    .login-form-side input.login-code { font-size: 1.6rem; letter-spacing: .4em; }
}
@media (prefers-reduced-motion: reduce) {
    .login-card { animation: none; }
}