/* ===================================================================
   AKASHTECH — Auth Pages Design System
   Premium split-panel authentication layout
   =================================================================== */

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

:root {
    --auth-ink: #07111f;
    --auth-muted: #5a6680;
    --auth-aqua: #17c4cf;
    --auth-aqua-deep: #0e8f97;
    --auth-coral: #ff8a3d;
    --auth-panel: #0c1829;
    --auth-bg: #fafbfd;
    --auth-border: rgba(7, 17, 31, 0.1);
    --auth-radius: 14px;
    --auth-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --auth-heading: 'Sora', 'Inter', sans-serif;
}

body {
    font-family: var(--auth-font);
    background: var(--auth-bg);
    color: var(--auth-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

a {
    color: var(--auth-aqua-deep);
    text-decoration: none;
    transition: color 0.25s ease;
}

a:hover {
    color: var(--auth-ink);
}

/* ---------- Shell: split-panel layout ---------- */
.auth-shell {
    display: grid;
    grid-template-columns: minmax(420px, 0.48fr) minmax(0, 1fr);
    min-height: 100vh;
}

/* ---------- Left brand panel ---------- */
.auth-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(23, 196, 207, 0.2), transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(255, 138, 61, 0.14), transparent 45%),
        linear-gradient(160deg, #07111f 0%, #0c1e3a 40%, #0f2745 70%, #091528 100%);
}

.auth-brand-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.auth-brand-logo img {
    height: 48px;
    width: auto;
}

.auth-brand-copy h1 {
    font-family: var(--auth-heading);
    font-size: clamp(1.8rem, 2.6vw, 2.6rem);
    font-weight: 800;
    line-height: 1.12;
    color: #fff;
    margin-bottom: 16px;
}

.auth-brand-copy p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 15px;
    line-height: 1.8;
    max-width: 400px;
}

.auth-brand-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-brand-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.auth-brand-feature i {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    border-radius: 10px;
    background: rgba(23, 196, 207, 0.15);
    color: var(--auth-aqua);
    font-size: 16px;
}

.auth-brand-feature span {
    color: rgba(255, 255, 255, 0.88);
    font-size: 14px;
    font-weight: 600;
}

.auth-brand-footer {
    margin-top: auto;
    padding-top: 24px;
}

.auth-brand-footer span {
    color: rgba(255, 255, 255, 0.36);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Decorative orbs */
.auth-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-orb-1 {
    width: 280px;
    height: 280px;
    top: -60px;
    right: -80px;
    background: rgba(23, 196, 207, 0.08);
    filter: blur(60px);
}

.auth-orb-2 {
    width: 220px;
    height: 220px;
    bottom: -40px;
    left: -60px;
    background: rgba(255, 138, 61, 0.08);
    filter: blur(50px);
}

/* ---------- Right form panel ---------- */
.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    background: var(--auth-bg);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-form-header {
    margin-bottom: 36px;
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 28px;
}

.auth-mobile-logo img {
    height: 42px;
    width: auto;
}

.auth-title {
    font-family: var(--auth-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--auth-ink);
    line-height: 1.2;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--auth-muted);
    font-size: 15px;
    font-weight: 500;
}

/* ---------- Form elements ---------- */
.auth-field {
    margin-bottom: 20px;
}

.auth-field label,
.auth-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--auth-ink);
    letter-spacing: 0.02em;
}

.auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-group .input-icon {
    position: absolute;
    left: 16px;
    color: var(--auth-muted);
    font-size: 17px;
    pointer-events: none;
    z-index: 2;
}

.auth-input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    padding-left: 48px;
    border-radius: var(--auth-radius);
    border: 1.5px solid var(--auth-border);
    background: #fff;
    font-family: var(--auth-font);
    font-size: 15px;
    color: var(--auth-ink);
    outline: none;
    transition: all 0.25s ease;
}

.auth-input:focus {
    border-color: var(--auth-aqua);
    box-shadow: 0 0 0 4px rgba(23, 196, 207, 0.1);
}

.auth-input::placeholder {
    color: #b0b8c9;
}

.auth-input-group .toggle-pass {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--auth-muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    z-index: 2;
}

.auth-input-group .toggle-pass:hover {
    color: var(--auth-ink);
}

/* -- Legacy form compat -- */
.c-form-group {
    position: relative;
    display: flex;
    align-items: center;
}

.c-form-group > label {
    position: absolute;
    left: 16px;
    color: var(--auth-muted);
    font-size: 17px;
    pointer-events: none;
    z-index: 2;
    margin: 0;
}

.c-form-group .form-control {
    width: 100%;
    height: 52px;
    padding: 0 18px 0 48px;
    border-radius: var(--auth-radius);
    border: 1.5px solid var(--auth-border);
    background: #fff;
    font-family: var(--auth-font);
    font-size: 15px;
    color: var(--auth-ink);
    outline: none;
    transition: all 0.25s ease;
    box-shadow: none;
}

.c-form-group .form-control:focus {
    border-color: var(--auth-aqua);
    box-shadow: 0 0 0 4px rgba(23, 196, 207, 0.1);
}

.c-form-group .form-control::placeholder {
    color: #b0b8c9;
}

.c-form-group .view-pass {
    position: absolute;
    right: 16px;
    background: none;
    border: none;
    color: var(--auth-muted);
    font-size: 18px;
    cursor: pointer;
    z-index: 2;
}

.c-form-group .view-pass:hover {
    color: var(--auth-ink);
}

/* ---------- Row helpers ---------- */
.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-row .form-check {
    margin: 0;
}

.auth-row .form-check-input {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1.5px solid var(--auth-border);
    cursor: pointer;
}

.auth-row .form-check-input:checked {
    background-color: var(--auth-aqua-deep);
    border-color: var(--auth-aqua-deep);
}

.auth-row .form-check-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-ink);
    cursor: pointer;
    margin-left: 6px;
}

.auth-row a {
    font-size: 14px;
    font-weight: 600;
}

/* ---------- Submit button ---------- */
.btn-submit,
.btn-s-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 52px;
    border-radius: var(--auth-radius);
    border: none;
    background: linear-gradient(135deg, var(--auth-panel) 0%, #15365d 100%);
    color: #fff;
    font-family: var(--auth-heading);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(7, 17, 31, 0.2);
}

.btn-submit:hover,
.btn-s-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(7, 17, 31, 0.28);
    background: linear-gradient(135deg, #0f2745, #1a4270);
    color: #fff;
}

.guest-auth-form-group {
    margin-top: 8px;
    margin-bottom: 12px;
}

/* ---------- Auth footer text ---------- */
.auth-footer-text {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--auth-border);
    font-size: 14px;
    font-weight: 600;
    color: var(--auth-muted);
}

.auth-footer-text a {
    color: var(--auth-aqua-deep);
    font-weight: 700;
}

.auth-footer-text a:hover {
    color: var(--auth-ink);
}

/* ---------- Alert styles ---------- */
.alert-success {
    background: rgba(16, 185, 129, 0.08) !important;
    border: 1px solid rgba(16, 185, 129, 0.2) !important;
    color: #059669 !important;
    border-radius: var(--auth-radius) !important;
    padding: 14px 18px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    margin-bottom: 20px !important;
}

.invalid-feedback {
    font-size: 13px;
    font-weight: 600;
    color: #dc2626;
    margin-top: 6px;
}

/* ---------- Legacy compat ---------- */
.new-guest-auth-div {
    display: contents;
}

.new-auth-container {
    display: contents;
}

.guest-auth-card {
    display: contents;
}

.auth-card-logo-card {
    display: none;
}

.new-auth-title {
    display: none;
}

/* guest-form-control compat for password reset pages */
.guest-form-control {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border-radius: var(--auth-radius);
    border: 1.5px solid var(--auth-border);
    background: #fff;
    font-family: var(--auth-font);
    font-size: 15px;
    color: var(--auth-ink);
    outline: none;
    transition: all 0.25s ease;
}

.guest-form-control:focus {
    border-color: var(--auth-aqua);
    box-shadow: 0 0 0 4px rgba(23, 196, 207, 0.1);
}

.guest-abs-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--auth-ink);
    letter-spacing: 0.02em;
}

/* Legacy btn compat */
.btn-block {
    width: 100%;
}

/* d-none helper */
.d-none {
    display: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        padding: 32px 24px;
        min-height: 100vh;
    }

    .auth-mobile-logo {
        display: block;
    }
}

@media (max-width: 480px) {
    .auth-form-panel {
        padding: 24px 18px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-input,
    .c-form-group .form-control,
    .guest-form-control {
        height: 48px;
        font-size: 14px;
    }

    .btn-submit,
    .btn-s-primary {
        height: 48px;
        font-size: 14px;
    }
}