/* ============================================
   GUJARAT GYAN GURU QUIZ — Login Page
   Light, Clean, Modern UI  |  Fully Responsive
   ============================================ */

/* ── Import Google Font ───────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & Base ─────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, #dbe9ff 0%, #c7d8f7 25%, #e0d4f7 50%, #d6e4ff 75%, #e8d5f0 100%);
    color: #333;
    overflow-x: hidden;
}

/* ── Subtle Decorative Blobs ──────────────── */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    filter: blur(90px);
    opacity: 0.25;
    animation: floatOrb 14s ease-in-out infinite alternate;
    pointer-events: none;
}

body::before {
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, #6e8efb, transparent 70%);
    top: -80px;
    left: -60px;
}

body::after {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #a78bfa, transparent 70%);
    bottom: -60px;
    right: -60px;
    animation-delay: 3s;
    animation-direction: alternate-reverse;
}

@keyframes floatOrb {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(30px, -20px) scale(1.05); }
    100% { transform: translate(-15px, 15px) scale(0.97); }
}

/* ── Hero Section ─────────────────────────── */
.form-hero {
    width: 100%;
    float: left;
    clear: both;
    position: relative;
    z-index: 1;
}

.main {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 15px 80px;
    position: relative;
}

/* ── Mobile Header (hidden on desktop) ────── */
.mobile-header {
    width: 100%;
    float: left;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    display: none;
}

.mobile-header-img {
    display: flex;
    justify-content: space-between;
}

.mobile-header-img img {
    width: 100%;
    max-width: 82px;
}

.mobile-header-img .imgs {
    width: 100%;
    max-width: 70px;
    height: 75px;
    margin-top: 3%;
}

.mobile-header-img-name {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    background-color: #F68934;
}

.mobile-header-img-name .name-1,
.mobile-header-img-name .name-2 {
    width: 100%;
    float: left;
    clear: both;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex-basis: 100%;
}

.mobile-header-img-name .name-2 {
    align-items: flex-end;
}

.mobile-header-img-name p {
    font-size: 12px;
    font-weight: 600;
    line-height: normal;
    color: #fff;
    margin-bottom: 2px;
}

.mobile-header-img-name span {
    font-size: 8px;
    font-weight: 400;
    line-height: 12px;
    color: #fff;
}

/* ── Form Wrapper ─────────────────────────── */
.web-form-main {
    width: 100%;
    max-width: 520px;
    position: relative;
}

/* Remove old background shapes */
.web-form-main::before,
.web-form-main::after {
    display: none;
}

.web-form {
    width: 100%;
    display: flex;
    justify-content: center;
    animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Hide Left/Right Image Panels ─────────── */
.web-form-left {
    display: none;
}

.web-form-right {
    display: none;
}

.web-form-left-name {
    background-color: #F68934;
    width: 100%;
    float: left;
    text-align: center;
    border-radius: 10px;
    padding: 10px 0;
}

.web-form-left-name p {
    font-size: 27px;
    font-weight: 600;
    line-height: normal;
    color: #fff;
    margin-bottom: 5px;
}

.web-form-left-name span {
    font-size: 19px;
    font-weight: 400;
    line-height: normal;
    color: #fff;
}

/* ── Login Card ────────────────────────────── */
.web-form-data {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 45px 40px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.05);
}

/* ── Logo ─────────────────────────────────── */
.form-data-image {
    display: flex;
    justify-content: center;
    margin-bottom: 5px;
}

.form-data-image img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    border-radius: 20px;
    padding: 8px;
    background: #f0f4ff;
    border: 1px solid #e0e7f5;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

/* ── Title ────────────────────────────────── */
.form-data-title {
    display: flex;
    justify-content: center;
    text-align: center;
}

.form-data-title h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

/* ── Form Details Group ───────────────────── */
.web-form-details {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

/* ── Input Rows ───────────────────────────── */
.web-input {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.web-input i {
    margin-right: 0;
    width: 46px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2ff;
    border: 1px solid #d6ddf5;
    border-right: none;
    border-radius: 12px 0 0 12px;
    color: #4f6af0;
    font-size: 16px;
    flex-shrink: 0;
}

.web-input input {
    width: 100%;
    height: 50px;
    border: 1px solid #d6ddf5;
    padding: 0 16px;
    border-radius: 12px;
    background: #f8f9ff;
    color: #1a1a2e;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    transition: all 0.3s ease;
    outline: none;
}

/* When preceded by an icon, adjust border radius */
.web-input i + input {
    border-radius: 0 12px 12px 0;
}

.web-input input::placeholder {
    color: #9ca3bf;
    font-weight: 400;
}

.web-input input:focus {
    border-color: #4f6af0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 106, 240, 0.1);
}

/* ── Captcha Row ──────────────────────────── */
.web-input.captcha {
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.web-input.captcha button {
    background: linear-gradient(135deg, #4f6af0, #3b55d9);
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.web-input.captcha button:hover {
    background: linear-gradient(135deg, #5f7aff, #4f6af0);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(79, 106, 240, 0.3);
}

.web-input.captcha button:active {
    transform: translateY(0);
}

.web-input.captcha img {
    width: 100%;
    max-width: 160px;
}

/* Captcha display text */
#disp_code {
    font-size: 22px !important;
    font-weight: 700;
    letter-spacing: 6px;
    color: #e67e22;
    user-select: none;
    -webkit-user-select: none;
}

/* ── Submit / Login Button ────────────────── */
.web-input.loginbtn {
    margin-top: 6px;
}

.web-input.loginbtn button {
    background: linear-gradient(135deg, #4f6af0 0%, #3b55d9 100%);
    color: #fff;
    border: none;
    padding: 14px 60px;
    font-size: 17px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.web-input.loginbtn button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.web-input.loginbtn button:hover {
    background: linear-gradient(135deg, #5f7aff 0%, #4f6af0 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 106, 240, 0.35);
}

.web-input.loginbtn button:hover::before {
    left: 100%;
}

.web-input.loginbtn button:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(79, 106, 240, 0.25);
}

/* Spinner / Loader button */
.web-input.loginbtn .buttonload,
.buttonload {
    background: linear-gradient(135deg, #4f6af0, #3b55d9) !important;
    border-radius: 14px !important;
    padding: 14px 40px !important;
    border: none !important;
}

/* ── Login Type 1 — Application ID Row ───── */
.web-input .input-group-btn .btn-info {
    background: linear-gradient(135deg, #4f6af0, #3b55d9);
    border: none;
    border-radius: 0 12px 12px 0;
    padding: 12px 18px;
    color: #fff;
    transition: all 0.3s ease;
}

.web-input .input-group-btn .btn-info:hover {
    background: linear-gradient(135deg, #5f7aff, #4f6af0);
    box-shadow: 0 4px 15px rgba(79, 106, 240, 0.3);
}

/* ── Error Alert ──────────────────────────── */
.alert-danger {
    background: #fef2f2 !important;
    border: 1px solid #fecaca !important;
    color: #dc2626 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 14px;
}

.alert-danger ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.alert-danger li {
    padding: 2px 0;
}

/* Captcha error */
#captcha_error p {
    color: #dc2626 !important;
    font-size: 13px;
    font-weight: 500;
}

/* ── Footer ───────────────────────────────── */
.form-footer {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 10;
    background: transparent;
}

.form-footer1 {
    width: 100%;
    display: flex;
    background-color: #2148C0;
    top: auto;
    align-items: center;
    justify-content: center;
}

.form-footer2 {
    width: 100%;
    padding: 10px 0;
    top: auto;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.form-footer2 .container {
    max-width: 1200px;
    margin: 0 auto;
}

.form-footer2 .row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.form-footer2 strong {
    color: #555;
    font-size: 12px;
    font-weight: 500;
}

.form-footer2 a {
    color: #4f6af0 !important;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 600;
}

.form-footer2 a:hover {
    color: #3b55d9 !important;
}

.form-footer2 img {
    width: 20px !important;
    vertical-align: middle;
    border-radius: 4px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

@media only screen and (max-width: 1600px) {
    .form-footer img {
        max-width: 1000px;
        width: 35%;
    }

    .web-form-left-name span {
        font-size: 16px;
    }
}

@media only screen and (max-width: 1499px) {
    .form-footer img {
        max-width: 1000px;
        width: 35%;
    }

    .form-data-title h3 {
        font-size: 20px;
    }

    .web-input input {
        height: 48px;
    }

    .web-form-left-name p {
        font-size: 28px;
    }
}

@media only screen and (max-width: 1299px) {
    .form-footer img {
        max-width: 600px;
    }

    .form-data-image img {
        width: 80px;
        height: 80px;
    }

    .web-form-left-name p {
        font-size: 20px;
    }

    .web-input input {
        height: 46px;
        font-size: 14px;
    }

    .web-input.captcha img {
        width: 100%;
        max-width: 160px;
    }

    .web-input.loginbtn button {
        font-size: 16px;
    }

    .web-form-left-name span {
        font-size: 12px;
    }

    .form-data-title h3 {
        font-size: 20px;
    }
}

@media only screen and (max-width: 1024px) {
    .form-footer img {
        max-width: 1000px;
        width: 35%;
    }

    .form-footer2 {
        font-size: 10px;
    }

    .form-footer2 strong {
        font-size: 10px;
    }

    .mobile-header {
        display: block;
    }

    .web-form-left {
        display: none;
    }

    .web-form {
        display: flex;
        justify-content: center;
    }

    .form-data-title h3 {
        font-size: 18px;
    }

    .mobile-header-img-name .name-1,
    .mobile-header-img-name .name-2 {
        padding: 6px 0;
    }

    .web-form-data {
        width: 100%;
        max-width: 100%;
        gap: 10px;
        padding: 35px 30px;
    }
}

@media only screen and (max-width: 786px) {
    .main {
        padding: 20px 15px 90px;
    }

    .web-form-data {
        width: 100%;
        max-width: 100%;
        gap: 10px;
        padding: 30px 24px 35px;
        border-radius: 20px;
    }

    .web-form-main {
        max-width: 100%;
    }

    .form-data-image img {
        width: 70px;
        height: 70px;
    }

    .form-data-title h3 {
        font-size: 17px;
    }

    .web-input input {
        height: 46px;
        font-size: 14px;
    }

    .web-input.loginbtn button {
        padding: 13px 50px;
        font-size: 15px;
    }

    /* Footer responsive */
    .form-footer2 .row {
        flex-direction: column;
        text-align: center;
        gap: 4px;
    }

    .form-footer2 strong {
        font-size: 9px;
    }
}

@media only screen and (max-width: 480px) {
    .main {
        padding: 15px 10px 85px;
    }

    .web-form-data {
        padding: 28px 18px 30px;
        border-radius: 18px;
    }

    .form-data-image img {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .form-data-title h3 {
        font-size: 15px;
    }

    .web-input i {
        width: 40px;
        height: 46px;
        font-size: 14px;
        border-radius: 10px 0 0 10px;
    }

    .web-input input {
        height: 46px;
        font-size: 13px;
        padding: 0 12px;
        border-radius: 10px;
    }

    .web-input i + input {
        border-radius: 0 10px 10px 0;
    }

    .web-input.loginbtn button {
        padding: 12px 40px;
        font-size: 14px;
        border-radius: 12px;
        width: 100%;
    }

    .web-input.captcha button {
        padding: 10px 14px;
        border-radius: 10px;
    }

    #disp_code {
        font-size: 18px !important;
        letter-spacing: 4px;
    }
}

@media only screen and (max-width: 360px) {
    .web-form-data {
        padding: 24px 14px 26px;
    }

    .form-data-title h3 {
        font-size: 14px;
    }

    .web-input input {
        height: 44px;
        font-size: 12px;
    }

    .web-input i {
        width: 38px;
        height: 44px;
    }
}