@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ================================================
   ROOT FONT SIZE SCALING - ALL DEVICES
   ================================================ */
html {
    font-size: 16px;
}

@media (max-width: 1920px) {
    html { font-size: 16px; }
}

@media (max-width: 1440px) {
    html { font-size: 15px; }
}

@media (max-width: 1024px) {
    html { font-size: 14px; }
}

@media (max-width: 768px) {
    html { font-size: 13px; }
}

@media (max-width: 480px) {
    html { font-size: 14px; }
}

@media (max-width: 320px) {
    html { font-size: 13px; }
}

/* ================================================
   CSS VARIABLES & GLOBAL STYLES
   ================================================ */
:root {
    --primary-color: #4361ee;
    --primary-hover: #3a56d4;
    --secondary-color: #3f37c9;
    --accent-color: #4cc9f0;
    --success-color: #2ecc71;
    --error-color: #e74c3c;
    --warning-color: #f39c12;
    --text-primary: #333;
    --text-secondary: #6c757d;
    --text-muted: #adb5bd;
    --bg-light: #f8f9fa;
    --card-shadow: 0 0.625rem 1.875rem rgba(0, 0, 0, 0.1);
    --transition-speed: 0.3s;
    --input-bg: #ffffff;
    --input-bg-focus: #fafbfc;
    --input-border: #e2e8f0;
    --input-border-focus: #4361ee;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    width: 100%;
    min-height: 100vh;
    overflow-x: hidden;
    background-color: var(--bg-light);
}

/* ================================================
   PRELOADER STYLES
   ================================================ */
#login_loader-wrapper {
    position: fixed;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s;
}

.loading-title {
    font-weight: 700;
    margin: 1.25rem 0;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
}

.loading-spinner {
    width: 3.75rem;
    height: 3.75rem;
    border: 0.3125rem solid rgba(67, 97, 238, 0.2);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-dots {
    display: flex;
    margin-top: 0.9375rem;
}

.loading-dots div {
    width: 0.625rem;
    height: 0.625rem;
    margin: 0 0.3125rem;
    border-radius: 50%;
    background-color: var(--primary-color);
    animation: bounce 1.4s infinite ease-in-out both;
}

.loading-dots .bounce {
    animation-delay: -0.32s;
}

.loading-dots .bounce2 {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* ================================================
   MAIN LOGIN CONTAINER
   ================================================ */
.login-container {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        rgba(var(--background-color), 0.1),
        rgba(var(--background-color), 1)
    ), 
    url('./../../uploads/wallpaper/wallpaper.jpg') no-repeat center center;
    background-size: cover;
    position: relative;
    padding: 1.25rem;
}

/* ================================================
   CONTENT WRAPPER - TWO COLUMN LAYOUT
   ================================================ */
.login-content-wrapper {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    width: 100%;
    max-width: 45rem;
    flex-wrap: nowrap;
    background: #fff;
    border-radius: 1rem;
    box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

/* ================================================
   LEFT SIDE - SCHOOL INFO & LOGO
   ================================================ */
.login-info-section {
    flex: 0 0 50%;
    min-width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    animation: slideInLeft 0.6s ease;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(76, 201, 240, 0.05));
    padding: 2rem;
    border-right: 0.0625rem solid #e2e8f0;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.school-crest-container {
    margin-bottom: 1rem;
    padding: 0.3125rem;
}

.school-crest {
    width: 6.5rem;
    height: 6.5rem;
    object-fit: contain;
    background: #fff;
    padding: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(67, 97, 238, 0.1);
    transition: all 0.3s ease;
    border: 0.1875rem solid #fff;
    border-radius: 0.5rem;
}

.school-crest:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 0.375rem 1.25rem rgba(67, 97, 238, 0.25);
}

.school-name-section {
    text-align: center;
    margin-bottom: 1.5rem;
}

.school-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.3;
    word-wrap: break-word;
}

.school-tagline {
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    margin: 0;
}

.app-name {
    color: var(--primary-color);
    font-weight: 600;
}

.company-info {
    margin-top: 1rem;
}

.company-info h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.company-info p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.company-support {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 0.0625rem solid rgba(67, 97, 238, 0.2);
}

.support-heading {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    margin: 0 0 0.75rem 0;
}

.support-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    gap: 0.6rem;
}

.support-item i {
    color: var(--primary-color);
    min-width: 1rem;
    text-align: center;
    flex-shrink: 0;
}

.support-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    word-break: break-word;
}

.support-item a:hover {
    color: var(--primary-hover);
}

/* ================================================
   RIGHT SIDE - LOGIN FORM
   ================================================ */
.container.login {
    flex: 0 0 50%;
    min-width: auto;
    width: 100%;
    max-width: none;
    position: relative;
    animation: slideInRight 0.6s ease;
}

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

.forms {
    width: 100%;
}

.form {
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    padding: 1.25rem 1.25rem 1rem;
    transition: all var(--transition-speed) ease;
    border-top: none;
    border: none;
}

/* ================================================
   FORM HEADER
   ================================================ */
.form-header {
    margin-bottom: 1rem;
    text-align: center;
    position: relative;
}

.product-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
    position: relative;
    display: inline-block;
}

.product-name::after {
    content: '';
    position: absolute;
    bottom: -0.375rem;
    left: 50%;
    transform: translateX(-50%);
    width: 2.5rem;
    height: 0.125rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 0.125rem;
}

.form .title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    display: block;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 0.75rem;
    margin-bottom: 0.8rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 15rem;
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   INPUT FIELDS
   ================================================ */
.input-field {
    position: relative;
    height: 3.5rem;
    margin-bottom: 0.9rem;
}

.input-field input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    border-radius: 0.75rem;
    padding: 0 1.125rem 0 3.25rem;
    font-size: 0.875rem;
    font-weight: 400;
    border: 0.125rem solid var(--input-border);
    background-color: var(--input-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0.0625rem 0.1875rem rgba(0, 0, 0, 0.05);
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 3.25rem;
    transform: translateY(-50%);
    font-size: 0.875rem;
    font-weight: 400;
    pointer-events: none;
    color: var(--text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.input-field input:focus,
.input-field input:valid {
    border-color: var(--input-border-focus);
    background-color: var(--input-bg-focus);
    box-shadow: 0 0 0 0.1875rem rgba(67, 97, 238, 0.08), 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
    transform: translateY(-0.0625rem);
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
    top: -0.125rem;
    left: 1.125rem;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--input-bg-focus);
    padding: 0.125rem 0.5rem;
    color: var(--primary-color);
    border-radius: 0.25rem;
    z-index: 1;
}

.input-field i.icon {
    position: absolute;
    left: 1.0625rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.125rem;
    transition: all 0.3s ease;
    z-index: 2;
}

.input-field input:focus ~ i.icon,
.input-field input:valid ~ i.icon {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.input-field i.showHidePw {
    position: absolute;
    right: 1.0625rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.3125rem;
    border-radius: 0.375rem;
}

.input-field i.showHidePw:hover {
    color: var(--primary-color);
    background-color: rgba(67, 97, 238, 0.08);
}

/* ================================================
   CAPS LOCK WARNING
   ================================================ */
.caps-lock-warn {
    display: none;
    color: var(--error-color);
    font-size: 0.8125rem;
    margin: -1rem 0 1.125rem;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background-color: rgba(231, 76, 60, 0.1);
    align-items: center;
    border-left: 0.1875rem solid var(--error-color);
}

.caps-lock-warn i {
    margin-right: 0.5rem;
}

/* ================================================
   CHECKBOX & FORGOT PASSWORD
   ================================================ */
.checkbox-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.checkbox-content {
    display: flex;
    align-items: center;
}

.checkbox-content input {
    margin-right: 0.625rem;
    accent-color: var(--primary-color);
    width: 1.0625rem;
    height: 1.0625rem;
    cursor: pointer;
}

.checkbox-content label {
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 400;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    font-size: 0.8125rem;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem;
}

.forgot-link:hover {
    color: var(--primary-hover);
    background-color: rgba(67, 97, 238, 0.08);
}

/* ================================================
   LOGIN BUTTON
   ================================================ */
.input-field.button {
    margin-bottom: 1.375rem;
    height: 3.125rem;
}

.login-btn {
    width: 100%;
    height: 100%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0.25rem 0.75rem rgba(67, 97, 238, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-color));
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.25rem rgba(67, 97, 238, 0.4);
}

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

.btn-text {
    margin-right: 0.5rem;
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(0.3125rem);
}

/* ================================================
   RIPPLE EFFECT
   ================================================ */
.ripple {
    position: absolute;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: ripple-animation 0.5s ease-out;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ================================================
   CONNECTION ALERT STYLES
   ================================================ */
.con-alert-wrapper {
    position: fixed;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 999;
    animation: slide_in 0.5s ease forwards;
    max-width: 21.875rem;
    width: 100%;
}

.con-alert-wrapper .toast {
    background: #fff;
    padding: 1.25rem;
    border-radius: 0.625rem;
    border-left: 0.3125rem solid var(--success-color);
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fade_in 0.5s ease forwards;
}

.toast.offline {
    border-color: var(--warning-color);
}

.toast .content {
    display: flex;
    align-items: center;
}

.content .icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--success-color);
    color: #fff;
    font-size: 1.25rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.offline .content .icon {
    background: var(--warning-color);
}

.content .details {
    margin-left: 0.9375rem;
}

.details span {
    font-size: 1.125rem;
    font-weight: 600;
}

.details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.3125rem;
}

.toast .close-icon {
    width: 1.875rem;
    height: 1.875rem;
    background: #f2f2f2;
    color: var(--text-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.toast .close-icon:hover {
    background: #e5e5e5;
}

.hide-alert {
    display: none;
}

@keyframes slide_in {
    0% { transform: translateX(100%); }
    100% { transform: translateX(0); }
}

@keyframes fade_in {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.con-alert-wrapper.hide {
    animation: slide_out 0.5s ease forwards;
}

@keyframes slide_out {
    0% { transform: translateX(0); }
    100% {
        transform: translateX(100%);
        display: none;
    }
}

/* ================================================
   AUTOFILL STYLES
   ================================================ */
.input-field input:-webkit-autofill,
.input-field input:-webkit-autofill:hover,
.input-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px var(--input-bg-focus) inset;
    transition: background-color 5000s ease-in-out 0s;
    border-radius: 0.75rem;
}

.input-field input:-webkit-autofill ~ label {
    top: -0.125rem;
    left: 1.125rem;
    font-size: 0.6875rem;
    font-weight: 500;
    background: var(--input-bg-focus);
    padding: 0.125rem 0.5rem;
    color: var(--primary-color);
    border-radius: 0.25rem;
    z-index: 1;
}

@keyframes onAutoFillStart {
    from { content: ""; }
    to { content: ""; }
}

@keyframes onAutoFillCancel {
    from { content: ""; }
    to { content: ""; }
}

input:-webkit-autofill {
    animation-name: onAutoFillStart;
    transition: background-color 50000s ease-in-out 0s;
}

input:not(:-webkit-autofill) {
    animation-name: onAutoFillCancel;
}

/* ================================================
   ANIMATED FONT AWESOME ICONS
   ================================================ */
.animated-icon,
.pulse-icon,
.rotate-icon,
.bounce-icon,
.glow-icon,
.shake-icon,
.swing-icon,
.fade-icon {
    display: inline-block;
    margin-right: 0.375rem;
    font-size: 0.875rem;
}

.animated-icon:hover,
.pulse-icon:hover,
.rotate-icon:hover,
.bounce-icon:hover,
.glow-icon:hover,
.shake-icon:hover,
.swing-icon:hover,
.fade-icon:hover {
    color: var(--primary-hover);
    transform: scale(1.2);
    transition: all 0.3s ease;
}

.success-icon {
    color: var(--success-color);
}

.warning-icon {
    color: var(--warning-color);
}

.error-icon {
    color: var(--error-color);
}

.primary-icon {
    color: var(--primary-color);
}

.accent-icon {
    color: var(--accent-color);
}

/* ================================================
   RESPONSIVE MEDIA QUERIES
   ================================================ */

/* Tablet & Below */
@media only screen and (max-width: 1024px) {
    .login-content-wrapper {
        flex-direction: column;
        gap: 0;
        max-width: 100%;
    }

    .login-info-section {
        flex: 0 0 100%;
        min-width: 100%;
        border-right: none;
        border-bottom: 0.0625rem solid #e2e8f0;
    }

    .container.login {
        flex: 0 0 100%;
        min-width: 100%;
    }
}

/* Mobile Tablet */
@media only screen and (max-width: 768px) {
    .login-container {
        padding: 1rem;
    }

    .login-content-wrapper {
        gap: 0;
        border-radius: 0.75rem;
        flex-direction: column;
    }

    .login-info-section {
        padding: 1.5rem;
        border-right: none;
        border-bottom: 0.0625rem solid #e2e8f0;
        order: 2;
    }

    .container.login {
        order: 1;
    }

    .school-crest {
        width: 5.5rem;
        height: 5.5rem;
    }

    .school-crest-container {
        margin-bottom: 1rem;
    }

    .school-name {
        font-size: 1.15rem;
        margin-bottom: 0.25rem;
    }

    .school-tagline {
        font-size: 0.8rem;
    }

    .company-info {
        margin-top: 1rem;
    }

    .company-info h5 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .company-info p {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .company-info {
        margin-top: 1rem;
    }

    .company-info p {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .support-heading {
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }

    .support-item {
        margin-bottom: 0.6rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }

    .support-item i {
        min-width: 0.9rem;
        font-size: 0.85rem;
    }

    .support-item a {
        font-size: 0.75rem;
    }

    .form {
        padding: 1.5rem 1.5rem 1.25rem;
    }

    .form-header {
        margin-bottom: 1rem;
    }

    .form .title {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
    }

    .subtitle {
        font-size: 0.75rem;
        margin-bottom: 0.75rem;
    }

    .input-field {
        margin-bottom: 0.9rem;
    }

    .checkbox-text {
        margin-bottom: 1.1rem;
    }

    .input-field.button {
        margin-bottom: 1rem;
    }
}

/* Small Mobile */
@media only screen and (max-width: 480px) {
    .login-container {
        padding: 0.75rem;
    }

    .login-info-section {
        display: flex;
        padding: 1.25rem;
        border-right: none;
        border-bottom: 0.0625rem solid #e2e8f0;
        order: 2;
    }

    .login-content-wrapper {
        justify-content: center;
        max-width: 100%;
        flex-direction: column;
        border-radius: 0.5rem;
        width: 100%;
    }

    .container.login {
        flex: 0 0 100%;
        order: 1;
        width: 100%;
        max-width: 100%;
    }

    .school-crest {
        width: 4.5rem;
        height: 4.5rem;
    }

    .school-crest-container {
        margin-bottom: 0.75rem;
    }

    .school-name-section {
        margin-bottom: 1.25rem;
    }

    .school-name {
        font-size: 1.3rem;
        margin-bottom: 0.2rem;
        font-weight: 700;
    }

    .school-tagline {
        font-size: 0.9rem;
    }

    .company-info {
        margin-top: 0.75rem;
    }

    .company-info p {
        font-size: 0.9rem;
        margin-bottom: 0.6rem;
        line-height: 1.3;
    }

    .support-heading {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .support-item {
        margin-bottom: 0.4rem;
        font-size: 0.85rem;
        gap: 0.4rem;
    }

    .support-item i {
        min-width: 0.75rem;
        font-size: 0.85rem;
    }

    .support-item a {
        font-size: 0.85rem;
        line-height: 1.2;
    }

    .form {
        border-radius: 0;
        padding: 1rem 0.9rem 0.9rem;
    }

    .form-header {
        margin-bottom: 0.9rem;
    }

    .product-name {
        font-size: 0.7rem;
        margin-bottom: 0.3rem;
    }

    .form .title {
        font-size: 1.5rem;
        margin-bottom: 0.15rem;
    }

    .subtitle {
        font-size: 0.8rem;
        margin-bottom: 0.7rem;
        max-width: 100%;
    }

    .input-field {
        height: 3rem;
        margin-bottom: 0.8rem;
    }

    .input-field input {
        padding: 0 0.9rem 0 2.8rem;
        font-size: 0.95rem;
    }

    .input-field label {
        left: 2.8rem;
        font-size: 0.9rem;
    }

    .input-field input:focus ~ label,
    .input-field input:valid ~ label {
        font-size: 0.75rem;
        left: 0.9rem;
    }

    .input-field i.icon {
        left: 0.85rem;
        font-size: 1rem;
    }

    .input-field i.showHidePw {
        right: 0.85rem;
        font-size: 1rem;
    }

    .caps-lock-warn {
        font-size: 0.8rem;
        margin: -0.8rem 0 0.75rem;
    }

    .checkbox-text {
        margin-bottom: 0.9rem;
        gap: 0.3rem;
    }

    .checkbox-content input {
        width: 1rem;
        height: 1rem;
        margin-right: 0.4rem;
    }

    .checkbox-content label {
        font-size: 0.85rem;
    }

    .forgot-link {
        font-size: 0.85rem;
        padding: 0.15rem 0.3rem;
    }

    .input-field.button {
        height: 2.7rem;
        margin-bottom: 0.8rem;
    }

    .login-btn {
        font-size: 0.95rem;
    }

    .btn-text {
        margin-right: 0.15rem;
    }
}

/* ================================================
   SUBSCRIPTION EXPIRED MODAL
   ================================================ */
.subscription-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.subscription-modal {
    background: #fff;
    border-radius: 1.25rem;
    padding: 2.5rem 2rem;
    max-width: 28rem;
    width: 100%;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
}

.modal-icon-container {
    margin-bottom: 1.5rem;
}

.icon-wrapper {
    width: 5rem;
    height: 5rem;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1), rgba(231, 76, 60, 0.2));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    animation: pulse-warning 2s ease-in-out infinite;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(231, 76, 60, 0.2);
    animation: ripple-warning 1.5s ease-out infinite;
}

.icon-wrapper i {
    font-size: 2.5rem;
    color: var(--error-color);
    z-index: 1;
}

.modal-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--error-color);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--error-color), #c0392b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-message {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    padding: 0 1rem;
}

.modal-contact-info {
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(76, 201, 240, 0.05));
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 0.0625rem solid rgba(67, 97, 238, 0.1);
}

.modal-contact-info .contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    gap: 0.625rem;
}

.modal-contact-info .contact-item:last-child {
    margin-bottom: 0;
}

.modal-contact-info .contact-item i {
    color: var(--primary-color);
    font-size: 1rem;
    min-width: 1.25rem;
    text-align: center;
}

.modal-contact-info .contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.modal-contact-info .contact-item a:hover {
    color: var(--primary-hover);
    transform: translateX(0.1875rem);
}

.modal-close-btn {
    width: 100%;
    height: 3rem;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 0.25rem 0.75rem rgba(67, 97, 238, 0.3);
}

.modal-close-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover), var(--secondary-color));
    transform: translateY(-0.125rem);
    box-shadow: 0 0.5rem 1.25rem rgba(67, 97, 238, 0.4);
}

.modal-close-btn:active {
    transform: translateY(0);
}

.modal-close-btn i {
    font-size: 1.125rem;
    transition: transform 0.3s ease;
}

.modal-close-btn:hover i {
    transform: scale(1.1);
}

/* Animations */
@keyframes pulse-warning {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes ripple-warning {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Responsive Design */
@media only screen and (max-width: 480px) {
    .subscription-modal {
        padding: 2rem 1.5rem;
        border-radius: 1rem;
    }

    .icon-wrapper {
        width: 4rem;
        height: 4rem;
    }

    .icon-wrapper i {
        font-size: 2rem;
    }

    .modal-title {
        font-size: 1.5rem;
        margin-bottom: 0.875rem;
    }

    .modal-message {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        padding: 0 0.5rem;
    }

    .modal-contact-info {
        padding: 1rem;
        margin-bottom: 1.25rem;
    }

    .modal-contact-info .contact-item {
        margin-bottom: 0.625rem;
        font-size: 0.85rem;
    }

    .modal-contact-info .contact-item i {
        font-size: 0.9rem;
    }

    .modal-contact-info .contact-item a {
        font-size: 0.85rem;
    }

    .modal-close-btn {
        height: 2.75rem;
        font-size: 0.9375rem;
    }
}