@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Poppins:wght@400;500;600&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Inter', sans-serif; background: #FFFFFF; overflow-x: hidden; }

/* ── Hero ── */
.hero-section {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(180deg, #750843 0%, #000000 70.2%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 20px;
}

.hero-bg {
    position: absolute;
    width: 886px;
    height: 434px;
    left: calc(50% - 886px/2);
    top: 10px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.50;
}

.hero-title {
    position: relative;
    z-index: 1;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 72px;
    line-height: 1.2;
    text-align: center;
    letter-spacing: -0.02em;
    color: #FFFFFF;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

/* ── Content section ── */
.login-section {
    position: relative;
    width: 100%;
    min-height: 396px;
    background: #FFFFFF;
    padding: 40px 20px 60px;
}

.login-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ── Status icon (email-verified page) ── */
.status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.success-icon { background: #D1FAE5; color: #065F46; }
.warning-icon { background: #FEF3C7; color: #92400E; }
.error-icon   { background: #FEE2E2; color: #991B1B; }

/* ── Typography ── */
.login-heading {
    width: 624px;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    text-align: center;
    letter-spacing: -0.02em;
    color: #2D3748;
    margin-bottom: 16px;
}

.login-subtext {
    width: 519px;
    max-width: 100%;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 22px;
    text-align: center;
    color: #2D3748;
    margin-bottom: 12px;
}

/* ── Alerts ── */
.messages-container {
    width: 100%;
    max-width: 500px;
    margin-bottom: 16px;
}

.alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    line-height: 20px;
    font-weight: 500;
    position: relative;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    text-align: left;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.alert-error   { background-color: #FEE2E2; border: 1px solid #FCA5A5; color: #991B1B; }
.alert-success { background-color: #D1FAE5; border: 1px solid #6EE7B7; color: #065F46; }
.alert-info    { background-color: #DBEAFE; border: 1px solid #93C5FD; color: #1E40AF; }

.alert-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.alert-message { flex: 1; }

.alert-close {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    flex-shrink: 0;
}

.alert-close:hover                  { background-color: rgba(0, 0, 0, 0.1); }
.alert-error .alert-close:hover     { background-color: rgba(153, 27, 27, 0.1); }
.alert-success .alert-close:hover   { background-color: rgba(6, 95, 70, 0.1); }

/* ── Form shared ── */
.owi_form {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.input-group {
    position: relative;
    width: 100%;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 8px 50px 8px 16px;
    border: 1px solid #6C757D;
    border-radius: 4px;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -0.01em;
    color: #2D3748;
    transition: all 0.3s ease;
}

.form-input::placeholder { color: #DEE2E6; }

.form-input:focus {
    outline: none;
    border-color: #AD1457;
    box-shadow: 0px 0px 0px 3px rgba(173, 20, 87, 0.1);
}

.input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.password-toggle:hover  { background-color: rgba(108, 117, 125, 0.1); }
.password-toggle:active { transform: translateY(-50%) scale(0.95); }

.field-error {
    color: #991B1B;
    font-size: 13px;
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    text-align: left;
}

/* ── Submit button ── */
.submit-button {
    width: 100%;
    height: 48px;
    padding: 8px 16px;
    background: #AD1457;
    box-shadow: 0px 0px 10px 2px rgba(236, 64, 122, 0.15);
    border-radius: 4px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 20px;
    line-height: 25px;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 16px;
}

.submit-button:hover  { background: #8B1046; box-shadow: 0px 0px 15px 3px rgba(236, 64, 122, 0.25); }
.submit-button:active { transform: scale(0.98); }

/* link-style submit button (used on forgot-password sent state & email-verified) */
.link-button {
    display: inline-flex;
    width: auto;
    height: auto;
    padding: 12px 32px;
    text-decoration: none;
    font-size: 16px;
    margin-top: 8px;
}

/* ── Footer links ── */
.signup-link {
    margin-top: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: #2D3748;
    text-align: center;
}

.signup-link a {
    color: #AD1457;
    text-decoration: none;
    font-weight: 600;
}

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

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero-section { height: 400px; }
    .hero-title   { font-size: 42px; padding: 0 20px; }
    .hero-bg      { width: 600px; height: 300px; top: 100px; }
    .login-heading { font-size: 24px; line-height: 32px; }
    .login-subtext { font-size: 14px; line-height: 18px; }
    .form-input    { font-size: 16px; }
    .alert         { font-size: 14px; padding: 12px 14px; }
}