/* Reset & Root Variables */
:root {
    --bg-dark-start: #24140D;
    --bg-dark-end: #1A0D08;
    --brand-orange: #E65E05;
    --brand-orange-hover: #D05300;
    --bg-cream: #FAF7F2;
    --text-dark: #23120A;
    --text-muted: #71717A;
    --text-body: #3F3F46;
    --border-color: #E4E4E7;
    --card-shadow: 0 15px 45px rgba(40, 20, 10, 0.05), 0 2px 8px rgba(0, 0, 0, 0.02);
}

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

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Plus Jakarta Sans', 'Inter', 'Lato', sans-serif;
    background-color: var(--bg-cream);
    color: var(--text-body);
    overflow-x: hidden;
}

/* Wrapper Layout */
.login-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* --- Left Hero Panel --- */
.hero-panel {
    flex: 0 0 40%;
    max-width: 520px;
    min-width: 380px;
    background: linear-gradient(145deg, var(--bg-dark-start) 0%, var(--bg-dark-end) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 70px 50px;
    color: #FFFFFF;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 4;
}

.hero-welcome {
    font-size: 22px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    display: block;
    margin-bottom: 2px;
}

.brand-title {
    font-size: 46px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
    display: flex;
    align-items: center;
}

.brand-edu {
    color: #FFFFFF;
}

.brand-pass {
    color: var(--brand-orange);
}

.brand-line {
    width: 54px;
    height: 4px;
    background: var(--brand-orange);
    border-radius: 2px;
    margin: 16px 0 28px 0;
}

.hero-description {
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 400;
    max-width: 340px;
}

/* Watermark SVG Illustration */
.hero-watermark {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 440px;
    height: 440px;
    pointer-events: none;
    z-index: 2;
    opacity: 0.8;
}

.hero-footer {
    position: relative;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.motto-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(230, 94, 5, 0.15);
    border: 1px solid var(--brand-orange);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.motto-text {
    font-weight: 400;
}

.motto-highlight {
    color: var(--brand-orange);
    font-weight: 700;
}

/* Curved Divider between Left and Right */
.hero-divider {
    position: absolute;
    top: 0;
    right: -79px;
    bottom: 0;
    width: 80px;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.hero-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* --- Right Form Section --- */
.form-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background-color: var(--bg-cream);
    position: relative;
    z-index: 1;
    min-height: 100vh;
}

.card-container {
    width: 100%;
    max-width: 450px;
    background: #FFFFFF;
    border-radius: 24px;
    padding: 36px 36px 32px 36px;
    box-shadow: var(--card-shadow);
    margin-bottom: 24px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
}

/* Card Header Badge Icon */
.app-badge {
    width: 96px;
    height: 96px;
    background: linear-gradient(145deg, #2D1A12 0%, #1A0D08 100%);
    border-radius: 22px;
    margin: 0 auto 20px auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 10px 24px rgba(35, 18, 10, 0.18);
}

.badge-text {
    font-size: 13px;
    font-weight: 800;
    margin-top: 2px;
    letter-spacing: -0.2px;
}

.bt-edu {
    color: #FFFFFF;
}

.bt-pass {
    color: var(--brand-orange);
}

.form-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.form-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 26px;
    font-weight: 400;
}

/* Alert Boxes */
.alert {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
}

.alert-danger {
    background-color: #FEF2F2;
    border: 1px solid #FCA5A5;
    color: #991B1B;
}

/* Input Fields */
.form-group {
    text-align: left;
    margin-bottom: 18px;
}

.input-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-body);
    margin-bottom: 7px;
}

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

.input-icon-left {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    font-size: 15px;
    pointer-events: none;
    transition: color 0.2s;
}

.custom-input {
    width: 100%;
    height: 48px;
    padding: 0 45px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text-dark);
    transition: all 0.2s ease;
    outline: none;
}

.custom-input::placeholder {
    color: #A1A1AA;
}

.custom-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3.5px rgba(230, 94, 5, 0.12);
}

.input-field-wrapper:focus-within .input-icon-left {
    color: var(--brand-orange);
}

.toggle-password-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    cursor: pointer;
    padding: 6px;
    font-size: 15px;
    transition: color 0.2s;
}

.toggle-password-btn:hover {
    color: var(--brand-orange);
}

.forgot-wrapper {
    text-align: right;
    margin-top: 8px;
}

.forgot-password-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-orange);
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-password-link:hover {
    opacity: 0.85;
    text-decoration: underline;
}

/* ReCAPTCHA */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

/* Submit Button */
.btn-primary-submit,
.btn-primary-submit *,
.btn-submit,
.btn-submit * {
    color: #FFFFFF !important;
}

.btn-primary-submit {
    width: 100%;
    height: 48px;
    background: var(--brand-orange);
    color: #FFFFFF !important;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(230, 94, 5, 0.25);
    transition: all 0.2s ease;
    margin-top: 6px;
}

.btn-primary-submit:hover {
    background: var(--brand-orange-hover);
    color: #FFFFFF !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230, 94, 5, 0.35);
}

.btn-primary-submit:active {
    transform: translateY(0);
}

/* Divider OR */
.divider-or {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 22px 0;
    color: #A1A1AA;
    font-size: 12.5px;
}

.divider-or::before, .divider-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #E4E4E7;
}

.divider-or span {
    padding: 0 12px;
}

/* Google SSO Button */
.btn-google-sso {
    width: 100%;
    height: 46px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-body);
    font-family: inherit;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-google-sso:hover {
    background-color: #F8FAFC;
    border-color: #CBD5E1;
}

/* Signup Prompt */
.signup-prompt {
    margin-top: 22px;
    font-size: 13.5px;
    color: #52525B;
    font-weight: 400;
}

.signup-link {
    color: var(--brand-orange);
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
}

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

/* Footer Security Badge */
.security-badge-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #52525B;
}

.shield-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--brand-orange);
    color: var(--brand-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: rgba(230, 94, 5, 0.06);
}

.highlight-secure {
    color: var(--brand-orange);
    font-weight: 700;
}

/* Responsive Media Queries */
@media (max-width: 960px) {
    .hero-panel {
        display: none;
    }
    
    .form-section {
        padding: 30px 16px;
    }

    .card-container {
        padding: 28px 24px;
        border-radius: 20px;
    }
}