
/* =========================================================
   MAA AMBIKA COMPUTER
   ONLINE EXAMINATION SYSTEM
   LARGE FONT / EASY READING UI
========================================================= */

:root {
    --primary: #1769e0;
    --primary-dark: #0d47a1;
    --primary-light: #eaf2ff;

    --navy: #102a43;
    --text: #243b53;
    --muted: #627d98;

    --white: #ffffff;
    --bg: #f4f7fb;

    --border: #d9e2ec;

    --success: #138a5b;
    --danger: #c62828;

    --shadow:
        0 20px 55px rgba(16, 42, 67, 0.14);

    --radius: 20px;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    font-size: 16px;
    scroll-behavior: smooth;
}


body {
    min-height: 100vh;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 17px;

    color: var(--text);

    background:
        linear-gradient(
            135deg,
            #f5f8fc 0%,
            #edf3fb 100%
        );

    line-height: 1.55;

    -webkit-font-smoothing: antialiased;
}


button,
input,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    text-decoration: none;
}


body.modal-open {
    overflow: hidden;
}


/* =========================================================
   HEADER
========================================================= */

.top-header {
    min-height: 88px;

    padding:
        14px
        5vw;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    background: rgba(255,255,255,0.97);

    border-bottom:
        1px solid
        var(--border);

    position: relative;

    z-index: 10;
}


.brand-area {
    display: flex;

    align-items: center;

    gap: 15px;
}


.brand-logo {
    width: 58px;
    height: 58px;

    border-radius: 16px;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    font-size: 20px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(23,105,224,0.25);
}


.brand-name {
    color: var(--navy);

    font-size: 23px;

    font-weight: 800;

    line-height: 1.25;
}


.brand-subtitle {
    color: var(--muted);

    font-size: 16px;

    margin-top: 2px;
}


.signup-top-btn {
    min-height: 52px;

    padding:
        9px 20px;

    display: flex;

    align-items: center;

    gap: 10px;

    border: 1px solid
        rgba(23,105,224,0.25);

    border-radius: 12px;

    background: var(--primary-light);

    color: var(--primary-dark);

    font-size: 16px;

    font-weight: 500;

    transition:
        0.2s ease;
}


.signup-top-btn strong {
    display: block;

    font-size: 17px;
}


.signup-top-btn:hover {
    background: #dceaff;

    transform:
        translateY(-1px);
}


.btn-icon {
    width: 32px;
    height: 32px;

    border-radius: 50%;

    display: flex;

    align-items: center;
    justify-content: center;

    background: var(--primary);

    color: white;

    font-size: 23px;

    line-height: 1;
}


/* =========================================================
   MAIN
========================================================= */

.main-wrapper {
    min-height:
        calc(100vh - 88px - 64px);

    padding:
        45px 5vw;
}


.exam-container {
    max-width: 1320px;

    min-height: 650px;

    margin: auto;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(440px, 0.85fr);

    background: white;

    border-radius: 24px;

    overflow: hidden;

    box-shadow: var(--shadow);
}


/* =========================================================
   HERO PANEL
========================================================= */

.hero-panel {
    position: relative;

    overflow: hidden;

    padding:
        65px 70px;

    display: flex;

    align-items: center;

    color: white;

    background:
        linear-gradient(
            135deg,
            #0d47a1 0%,
            #1769e0 55%,
            #2585f5 100%
        );
}


.hero-content {
    position: relative;

    z-index: 2;

    max-width: 650px;
}


.hero-badge {
    display: inline-flex;

    align-items: center;

    gap: 9px;

    padding:
        9px 15px;

    margin-bottom: 23px;

    border:
        1px solid
        rgba(255,255,255,0.28);

    border-radius: 50px;

    background:
        rgba(255,255,255,0.11);

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.8px;
}


.badge-dot {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #72e0ad;

    box-shadow:
        0 0 0 5px
        rgba(114,224,173,0.15);
}


.hero-panel h1 {
    margin-bottom: 22px;

    font-size: clamp(42px, 4vw, 58px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    font-weight: 800;
}


.hero-panel h1 span {
    display: block;

    color: #b9dcff;
}


.hero-description {
    max-width: 590px;

    margin-bottom: 38px;

    color:
        rgba(255,255,255,0.90);

    font-size: 19px;

    line-height: 1.75;
}


/* =========================================================
   FEATURES
========================================================= */

.features {
    display: grid;

    gap: 20px;
}


.feature-item {
    display: flex;

    align-items: flex-start;

    gap: 15px;
}


.feature-icon {
    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(255,255,255,0.16);

    border:
        1px solid
        rgba(255,255,255,0.25);

    font-size: 20px;

    font-weight: 800;
}


.feature-item h3 {
    margin-bottom: 2px;

    font-size: 18px;

    font-weight: 800;
}


.feature-item p {
    color:
        rgba(255,255,255,0.78);

    font-size: 15px;

    line-height: 1.5;
}


/* =========================================================
   HERO INFO CARD
========================================================= */

.hero-info-card {
    margin-top: 38px;

    max-width: 390px;

    padding: 15px 18px;

    display: flex;

    align-items: center;

    gap: 13px;

    border:
        1px solid
        rgba(255,255,255,0.18);

    border-radius: 14px;

    background:
        rgba(255,255,255,0.10);
}


.info-icon {
    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        rgba(255,255,255,0.13);

    font-size: 21px;
}


.hero-info-card strong {
    display: block;

    font-size: 16px;
}


.hero-info-card span {
    display: block;

    color:
        rgba(255,255,255,0.72);

    font-size: 14px;
}


/* =========================================================
   HERO DECORATIONS
========================================================= */

.hero-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}


.circle-one {
    width: 350px;
    height: 350px;

    right: -130px;
    top: -110px;

    border:
        60px solid
        rgba(255,255,255,0.05);
}


.circle-two {
    width: 280px;
    height: 280px;

    left: -160px;
    bottom: -170px;

    border:
        55px solid
        rgba(255,255,255,0.05);
}


.hero-grid {
    position: absolute;

    inset: 0;

    opacity: 0.05;

    background-image:
        linear-gradient(
            rgba(255,255,255,0.5) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,0.5) 1px,
            transparent 1px
        );

    background-size: 38px 38px;

    pointer-events: none;
}


/* =========================================================
   LOGIN PANEL
========================================================= */

.login-panel {
    display: flex;

    align-items: center;
    justify-content: center;

    padding:
        55px 65px;

    background: white;
}


.login-card {
    width: 100%;

    max-width: 475px;
}


.login-heading {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 10px;
}


.login-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 16px;

    background:
        var(--primary-light);

    font-size: 25px;
}


.login-label {
    margin-bottom: 1px;

    color: var(--primary);

    font-size: 13px;

    font-weight: 800;

    letter-spacing: 1px;
}


.login-heading h2 {
    color: var(--navy);

    font-size: 31px;

    line-height: 1.25;

    font-weight: 800;
}


.login-description {
    margin-bottom: 30px;

    color: var(--muted);

    font-size: 17px;

    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.login-form {
    display: grid;

    gap: 22px;
}


.form-field {
    width: 100%;
}


.form-field label {
    display: block;

    margin-bottom: 8px;

    color: var(--navy);

    font-size: 16px;

    font-weight: 700;
}


.input-wrapper {
    position: relative;
}


.input-icon {
    position: absolute;

    left: 17px;
    top: 50%;

    transform:
        translateY(-50%);

    font-size: 19px;

    z-index: 2;

    opacity: 0.75;
}


.input-wrapper input {
    width: 100%;

    height: 56px;

    padding:
        0 85px 0 50px;

    border:
        1.5px solid
        var(--border);

    border-radius: 12px;

    outline: none;

    color: var(--navy);

    background: #fbfcfe;

    font-size: 17px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}


.input-wrapper input::placeholder {
    color: #829ab1;

    font-size: 16px;
}


.input-wrapper input:focus {
    border-color: var(--primary);

    background: white;

    box-shadow:
        0 0 0 4px
        rgba(23,105,224,0.10);
}


.password-toggle {
    position: absolute;

    right: 10px;
    top: 50%;

    transform:
        translateY(-50%);

    min-width: 58px;

    border: none;

    background: transparent;

    color: var(--primary);

    font-size: 14px;

    font-weight: 800;
}


.password-toggle:hover {
    color: var(--primary-dark);
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;

    min-height: 57px;

    margin-top: 3px;

    padding:
        12px 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 12px;

    border: none;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    font-size: 18px;

    font-weight: 800;

    box-shadow:
        0 9px 22px
        rgba(23,105,224,0.24);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.login-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 13px 28px
        rgba(23,105,224,0.30);
}


.login-button .arrow {
    font-size: 24px;

    line-height: 1;
}


/* =========================================================
   SIGNUP SECTION
========================================================= */

.signup-section {
    padding:
        23px 0;

    text-align: center;

    color: var(--muted);

    font-size: 16px;

    border-bottom:
        1px solid
        #edf1f5;
}


.signup-section button {
    margin-left: 5px;

    padding: 0;

    border: none;

    background: transparent;

    color: var(--primary);

    font-size: 16px;

    font-weight: 800;
}


.signup-section button:hover {
    text-decoration: underline;
}


/* =========================================================
   HELP
========================================================= */

.login-help {
    margin-top: 22px;

    padding: 15px;

    display: flex;

    align-items: center;

    gap: 12px;

    border:
        1px solid
        #e1ebf5;

    border-radius: 12px;

    background: #f8fbff;
}


.help-icon {
    width: 34px;
    height: 34px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        var(--primary-light);

    color: var(--primary);

    font-weight: 900;
}


.login-help strong {
    display: block;

    color: var(--navy);

    font-size: 15px;
}


.login-help span {
    display: block;

    color: var(--muted);

    font-size: 14px;

    line-height: 1.5;
}


.login-help b {
    color: var(--primary);

    font-size: 15px;
}


/* =========================================================
   ALERT
========================================================= */

.alert-box {
    padding:
        12px 15px;

    margin-bottom: 18px;

    border-radius: 10px;

    font-size: 15px;

    font-weight: 600;
}


.alert-info {
    color: #0b5394;

    background: #e8f3ff;

    border:
        1px solid #c6e2ff;
}


.alert-error {
    color: var(--danger);

    background: #fff1f1;

    border:
        1px solid #ffd0d0;
}


/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    min-height: 64px;

    padding:
        12px 5vw;

    display: grid;

    grid-template-columns:
        1fr
        1fr
        1fr;

    align-items: center;

    gap: 15px;

    background: white;

    border-top:
        1px solid
        var(--border);

    color: var(--muted);

    font-size: 14px;
}


.admin-link {
    justify-self: start;

    border: none;

    background: transparent;

    color: var(--primary);

    font-size: 15px;

    font-weight: 700;
}


.admin-link:hover {
    text-decoration: underline;
}


.footer-center {
    text-align: center;
}


.footer-developer {
    text-align: right;
}


/* =========================================================
   MODAL
========================================================= */

.modal-overlay {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 25px;

    background:
        rgba(8, 28, 50, 0.68);

    backdrop-filter:
        blur(5px);

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        0.2s ease;
}


.modal-overlay.active {
    opacity: 1;

    visibility: visible;

    pointer-events: auto;
}


.modal-box {
    position: relative;

    width: 100%;

    max-width: 650px;

    max-height: 92vh;

    overflow-y: auto;

    padding: 35px;

    border-radius: 20px;

    background: white;

    box-shadow:
        0 25px 80px
        rgba(0,0,0,0.25);

    transform:
        translateY(20px)
        scale(0.97);

    transition:
        0.25s ease;
}


.modal-overlay.active .modal-box {
    transform:
        translateY(0)
        scale(1);
}


.admin-modal {
    max-width: 500px;
}


.modal-close {
    position: absolute;

    top: 15px;
    right: 17px;

    width: 38px;
    height: 38px;

    border: none;

    border-radius: 50%;

    background: #f1f5f9;

    color: #52606d;

    font-size: 27px;

    line-height: 1;

    transition:
        0.2s ease;
}


.modal-close:hover {
    background: #e2e8f0;

    color: var(--navy);
}


.modal-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 28px;

    padding-right: 35px;
}


.modal-icon {
    width: 55px;
    height: 55px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background:
        var(--primary-light);

    font-size: 24px;
}


.admin-icon {
    background:
        #eef1f5;
}


.modal-small-title {
    margin-bottom: 2px;

    color: var(--primary);

    font-size: 12px;

    font-weight: 800;

    letter-spacing: 1px;
}


.modal-header h2 {
    color: var(--navy);

    font-size: 27px;

    line-height: 1.25;
}


.modal-header p {
    margin-top: 2px;

    color: var(--muted);

    font-size: 15px;
}


/* =========================================================
   SIGNUP FORM
========================================================= */

.signup-form {
    display: grid;

    gap: 18px;
}


.signup-form input,
.signup-form select {
    width: 100%;

    height: 52px;

    padding:
        0 15px;

    border:
        1.5px solid
        var(--border);

    border-radius: 10px;

    outline: none;

    color: var(--navy);

    background: #fbfcfe;

    font-size: 16px;

    transition:
        0.2s ease;
}


.signup-form select {
    cursor: pointer;
}


.signup-form input:focus,
.signup-form select:focus {
    border-color: var(--primary);

    background: white;

    box-shadow:
        0 0 0 4px
        rgba(23,105,224,0.09);
}


.two-column {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 15px;
}


.modal-submit {
    width: 100%;

    min-height: 55px;

    margin-top: 5px;

    border: none;

    border-radius: 11px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--primary-dark)
        );

    color: white;

    font-size: 17px;

    font-weight: 800;

    box-shadow:
        0 8px 20px
        rgba(23,105,224,0.22);

    transition:
        0.2s ease;
}


.modal-submit:hover {
    transform:
        translateY(-1px);

    box-shadow:
        0 11px 24px
        rgba(23,105,224,0.28);
}


/* =========================================================
   FOCUS ACCESSIBILITY
========================================================= */

button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline:
        3px solid
        rgba(23,105,224,0.25);

    outline-offset: 2px;
}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media (min-width: 1500px) {

    .top-header {
        padding-left: 7vw;
        padding-right: 7vw;
    }

    .main-wrapper {
        padding-left: 7vw;
        padding-right: 7vw;
    }

    .site-footer {
        padding-left: 7vw;
        padding-right: 7vw;
    }

    .hero-panel {
        padding:
            75px 85px;
    }

}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1100px) {

    .exam-container {
        grid-template-columns:
            1fr 1fr;
    }

    .hero-panel {
        padding:
            50px 45px;
    }

    .login-panel {
        padding:
            45px 38px;
    }

    .hero-panel h1 {
        font-size: 43px;
    }

    .hero-description {
        font-size: 17px;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 850px) {

    .top-header {
        min-height: auto;

        padding:
            14px 25px;
    }

    .exam-container {
        grid-template-columns: 1fr;

        max-width: 650px;
    }

    .hero-panel {
        min-height: 480px;

        padding:
            50px 45px;
    }

    .login-panel {
        padding:
            50px 45px;
    }

    .main-wrapper {
        padding:
            30px 20px;
    }

    .site-footer {
        grid-template-columns: 1fr;

        text-align: center;

        padding:
            20px;
    }

    .admin-link,
    .footer-developer {
        justify-self: center;

        text-align: center;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    body {
        font-size: 16px;
    }

    .top-header {
        padding:
            13px 17px;

        gap: 12px;
    }

    .brand-logo {
        width: 48px;
        height: 48px;

        border-radius: 13px;

        font-size: 17px;
    }

    .brand-area {
        gap: 10px;
    }

    .brand-name {
        font-size: 18px;
    }

    .brand-subtitle {
        font-size: 13px;
    }

    .signup-top-btn {
        min-height: 45px;

        padding:
            7px 10px;

        font-size: 12px;
    }

    .signup-top-btn strong {
        font-size: 13px;
    }

    .btn-icon {
        width: 27px;
        height: 27px;

        font-size: 19px;
    }


    .main-wrapper {
        padding:
            15px 10px 25px;
    }

    .exam-container {
        border-radius: 17px;
    }


    .hero-panel {
        min-height: auto;

        padding:
            38px 28px;
    }

    .hero-badge {
        font-size: 11px;

        padding:
            8px 11px;
    }

    .hero-panel h1 {
        margin-bottom: 18px;

        font-size: 38px;
    }

    .hero-description {
        margin-bottom: 28px;

        font-size: 16px;

        line-height: 1.65;
    }

    .feature-item {
        gap: 12px;
    }

    .feature-icon {
        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 17px;
    }

    .feature-item h3 {
        font-size: 16px;
    }

    .feature-item p {
        font-size: 14px;
    }

    .hero-info-card {
        margin-top: 28px;
    }


    .login-panel {
        padding:
            38px 25px;
    }

    .login-icon {
        width: 50px;
        height: 50px;

        border-radius: 13px;
    }

    .login-heading h2 {
        font-size: 27px;
    }

    .login-description {
        font-size: 16px;

        margin-bottom: 25px;
    }

    .form-field label {
        font-size: 15px;
    }

    .input-wrapper input {
        height: 54px;

        font-size: 16px;
    }

    .input-wrapper input::placeholder {
        font-size: 15px;
    }

    .login-button {
        min-height: 56px;

        font-size: 17px;
    }

    .signup-section {
        font-size: 15px;
    }

    .signup-section button {
        font-size: 15px;
    }


    .modal-overlay {
        padding:
            12px;
    }

    .modal-box {
        padding:
            28px 20px;

        border-radius: 16px;
    }

    .modal-header h2 {
        font-size: 24px;
    }

    .modal-header p {
        font-size: 14px;
    }

    .two-column {
        grid-template-columns: 1fr;

        gap: 18px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 420px) {

    .brand-subtitle {
        display: none;
    }

    .brand-name {
        font-size: 16px;
    }

    .signup-top-btn span:not(.btn-icon) {
        display: none;
    }

    .signup-top-btn {
        width: 42px;

        justify-content: center;

        padding: 6px;
    }

    .hero-panel h1 {
        font-size: 34px;
    }

    .hero-panel {
        padding:
            32px 22px;
    }

    .login-panel {
        padding:
            32px 20px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        transition: none !important;
    }

}