/* --- Global Styles & Variables for Login Pages --- */
:root {
    --brand-purple: #5a287b;
    --light-purple-bg: #8c2cc4;
    --text-color: #333;
    --secondary-text: #555;
    --border-color: #ccc;
    --page-bg: #f4f4f4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: var(--page-bg);
    color: var(--text-color);
}

/* --- Main Layout Container --- */
.login-container {
    max-width: 450px;
    width: 100%;
    margin: 20px auto;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

/* --- Header --- */
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #3a1256;
    background-color: var(--brand-purple);
}

.logo-text {
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff;
}

.btn-cancel {
    background: transparent;
    border: 2px solid var(--border-color);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

/* --- Purple Banner --- */
.login-banner {
    background-color: var(--brand-purple);
    padding: 24px;
    border-bottom: 4px solid var(--brand-purple);
}

.login-banner h1 {
    color: #fdfdfd;
    font-size: 2rem;
    margin-bottom: 12px;
}

.login-banner p {
    color: #fcfcfc;
    line-height: 1.5;
}

/* --- Main Content Area --- */
.login-content {
    padding: 24px;
}

/* --- Tabs (Step 1) --- */
.tabs {
    display: flex;
    margin-bottom: 24px;
    gap: 2px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 10px 10px 0 0;
    border: 1px solid var(--border-color);
    border-top: 1px solid var(--brand-purple);
    margin-left: 2px;
    background: none;
    border-bottom: 2px solid var(--border-color);
    color: var(--brand-purple);
    cursor: pointer;
}

.tab-btn.active {
    color: var(--brand-purple);
    border-top: 4px solid var(--brand-purple);
    border-bottom-color: transparent;
    border-bottom: none !important;
    background-color: #fefefe;
}

/* --- Form Elements --- */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    color: var(--secondary-text);
    margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: 4px;
    font-size: 1.1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--brand-purple);
}

.forgot-link {
    color: var(--brand-purple);
    text-decoration: underline;
    font-weight: bold;
    display: block;
    margin-bottom: 24px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.info-link {
    color: var(--brand-purple);
    font-weight: bold;
    text-decoration: none;
}

/* --- Primary Button (Now inside the form) --- */
.btn-primary {
    background-color: var(--brand-purple);
    color: #fff;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: block;
    text-align: center;
    margin-top: 32px;
    /* Space above the button */
}

/* --- Step 2 Specifics --- */
.input-group {
    margin-bottom: 32px;
}

.input-group p {
    margin-bottom: 12px;
    font-size: 13px;
}

.digit-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.digit-box {
    text-align: center;
}

.digit-box label {
    font-size: 0.8rem;
    color: var(--secondary-text);
    margin-bottom: 6px;
    display: block;
}

.digit-box input {
    width: 55px;
    height: 65px;
    text-align: center;
    font-size: 1.5rem;
    padding: 0;
    border-radius: 25%;
}

.btn-show {
    background: none;
    border: none;
    color: var(--brand-purple);
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    margin-top: 5px;
    text-decoration: underline;
}

.alert-box {
    border: 4px solid #ffd700;
    border-radius: 4px;
    padding: 16px;
    margin-top: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.alert-text h2 {
    color: var(--brand-purple);
    margin-bottom: 8px;
}

.alert-logo {
    font-size: 0.8rem;
    text-align: center;
    background-color: #333;
    color: white;
    padding: 8px;
    border-radius: 4px;
}

.alert-logo span {
    display: block;
    font-weight: bold;
}

/* Utility class for JS */
.hidden {
    display: none;
}