@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

: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 10px 30px 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%;
    height: 100vh;
    overflow: 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: 20px 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: 60px;
    height: 60px;
    border: 5px 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: 15px;
}

.loading-dots div {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    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: 20px 15px;
}

/* School Crest Container */
.school-crest-container {
    text-align: center;
    margin-bottom: 25px;
    padding-top: 5px;
}

.school-crest {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.05), rgba(76, 201, 240, 0.05));
    padding: 12px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.15);
    transition: all 0.3s ease;
    border: 3px solid #fff;
}

.school-crest:hover {
    transform: scale(1.05) rotate(5deg);
    box-shadow: 0 6px 20px rgba(67, 97, 238, 0.25);
}

/* Form Container */
.container.login {
    width: 100%;
    max-width: 420px;
    position: relative;
}

.forms {
    width: 100%;
}

.form {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    padding: 35px 32px 28px;
    transition: all var(--transition-speed) ease;
    border-top: 5px solid var(--primary-color);
}

.form:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

/* Enhanced Form Header */
.form-header {
    margin-bottom: 25px;
    text-align: center;
    position: relative;
}

.product-name {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}

.product-name::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.form .title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    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: 14px;
    margin-bottom: 18px;
    font-weight: 400;
    line-height: 1.5;
    max-width: 260px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced Input Fields */
.input-field {
    position: relative;
    height: 56px;
    margin-bottom: 20px;
}

.input-field input {
    width: 100%;
    height: 100%;
    border: none;
    outline: none;
    border-radius: 12px;
    padding: 0 18px 0 52px;
    font-size: 14px;
    font-weight: 400;
    border: 2px solid var(--input-border);
    background-color: var(--input-bg);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.input-field label {
    position: absolute;
    top: 50%;
    left: 52px;
    transform: translateY(-50%);
    font-size: 14px;
    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 3px rgba(67, 97, 238, 0.08), 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

.input-field input:focus ~ label,
.input-field input:valid ~ label {
    top: -2px;
    left: 18px;
    font-size: 11px;
    font-weight: 500;
    background: var(--input-bg-focus);
    padding: 2px 8px;
    color: var(--primary-color);
    border-radius: 4px;
    z-index: 1;
}

.input-field i.icon {
    position: absolute;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    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: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 5px;
    border-radius: 6px;
}

.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: 13px;
    margin: -16px 0 18px;
    padding: 8px 12px;
    border-radius: 8px;
    background-color: rgba(231, 76, 60, 0.1);
    align-items: center;
    border-left: 3px solid var(--error-color);
}

.caps-lock-warn i {
    margin-right: 8px;
}

/* Checkbox and Forgot Password */
.checkbox-text {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-content {
    display: flex;
    align-items: center;
}

.checkbox-content input {
    margin-right: 10px;
    accent-color: var(--primary-color);
    width: 17px;
    height: 17px;
    cursor: pointer;
}

.checkbox-content label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 400;
    cursor: pointer;
}

.forgot-link {
    color: var(--primary-color);
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.forgot-link:hover {
    color: var(--primary-hover);
    background-color: rgba(67, 97, 238, 0.08);
}

/* Login Button */
.input-field.button {
    margin-bottom: 22px;
    height: 50px;
}

.login-btn {
    width: 100%;
    height: 100%;
    border: none;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    border-radius: 12px;
    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 4px 12px 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(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.login-btn:active {
    transform: translateY(0);
}

.btn-text {
    margin-right: 8px;
}

.login-btn i {
    transition: transform 0.3s ease;
}

.login-btn:hover i {
    transform: translateX(5px);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    width: 20px;
    height: 20px;
    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;
    }
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eee;
}

.form-footer p {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 8px;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 6px;
}

.form-footer a:hover {
    color: var(--primary-hover);
    background-color: rgba(67, 97, 238, 0.08);
}

.contact-info {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Connection Alert Styles */
.con-alert-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 999;
    animation: slide_in 0.5s ease forwards;
    max-width: 350px;
    width: 100%;
}

.con-alert-wrapper .toast {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border-left: 5px solid var(--success-color);
    box-shadow: 0 5px 15px 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: 40px;
    height: 40px;
    background: var(--success-color);
    color: #fff;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast.offline .content .icon {
    background: var(--warning-color);
}

.content .details {
    margin-left: 15px;
}

.details span {
    font-size: 18px;
    font-weight: 600;
}

.details p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-top: 5px;
}

.toast .close-icon {
    width: 30px;
    height: 30px;
    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;
    }
}

/* Enhanced 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: 12px;
}

.input-field input:-webkit-autofill ~ label {
    top: -2px;
    left: 18px;
    font-size: 11px;
    font-weight: 500;
    background: var(--input-bg-focus);
    padding: 2px 8px;
    color: var(--primary-color);
    border-radius: 4px;
    z-index: 1;
}

.input-field input:autofill ~ label {
    top: -2px;
    left: 18px;
    font-size: 11px;
    font-weight: 500;
    background: var(--input-bg-focus);
    padding: 2px 8px;
    color: var(--primary-color);
    border-radius: 4px;
    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 Styles */
.animated-icon,
.pulse-icon,
.rotate-icon,
.bounce-icon,
.glow-icon,
.shake-icon,
.swing-icon,
.fade-icon {
    display: inline-block;
    margin-right: 6px;
    font-size: 14px;
}

/* Hover Effects for Icons */
.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;
}

/* Special Icon Colors */
.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 BREAKPOINTS - OPTIMIZED FOR ALL SCREENS
   ================================================ */

/* Extra Large Desktop (1920px+) */
@media only screen and (min-width: 1920px) {
    .container.login {
        max-width: 450px;
    }
    
    .school-crest {
        width: 120px;
        height: 120px;
    }
}

/* Large Desktop (1440px - 1919px) */
@media only screen and (max-width: 1919px) and (min-width: 1440px) {
    .container.login {
        max-width: 420px;
    }
    
    .school-crest {
        width: 115px;
        height: 115px;
    }
}

/* Standard Desktop/Large Laptop (1366px - 1439px) */
@media only screen and (max-width: 1439px) and (min-width: 1366px) {
    .container.login {
        max-width: 400px;
    }
    
    .school-crest {
        width: 105px;
        height: 105px;
    }
    
    .form {
        padding: 32px 30px 26px;
    }
    
    .form .title {
        font-size: 25px;
    }
}

/* Small Laptop/Desktop (1280px - 1365px) - 13-14 inch laptops */
@media only screen and (max-width: 1365px) and (min-width: 1280px) {
    .container.login {
        max-width: 380px;
    }
    
    .school-crest {
        width: 100px;
        height: 100px;
    }
    
    .form {
        padding: 30px 28px 24px;
    }
    
    .form-header {
        margin-bottom: 22px;
    }
    
    .product-name {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .form .title {
        font-size: 24px;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 13px;
        max-width: 240px;
        margin-bottom: 16px;
    }
    
    .input-field {
        height: 54px;
        margin-bottom: 18px;
    }
    
    .input-field input {
        padding: 0 16px 0 50px;
        font-size: 13px;
    }
    
    .input-field label {
        left: 50px;
        font-size: 13px;
    }
    
    .input-field input:focus ~ label,
    .input-field input:valid ~ label {
        left: 16px;
        font-size: 11px;
    }
    
    .input-field i.icon {
        left: 16px;
        font-size: 17px;
    }
    
    .input-field i.showHidePw {
        right: 16px;
        font-size: 17px;
    }
    
    .checkbox-content input {
        width: 16px;
        height: 16px;
    }
    
    .checkbox-content label,
    .forgot-link {
        font-size: 12px;
    }
    
    .checkbox-text {
        margin-bottom: 20px;
    }
    
    .input-field.button {
        height: 48px;
        margin-bottom: 20px;
    }
    
    .login-btn {
        font-size: 14px;
    }
    
    .form-footer {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .form-footer p {
        font-size: 12px;
    }
    
    .contact-info {
        font-size: 10px;
    }
}

/* Compact Laptop (1024px - 1279px) - 11-13 inch laptops */
@media only screen and (max-width: 1279px) and (min-width: 1024px) {
    .container.login {
        max-width: 360px;
    }
    
    .school-crest {
        width: 95px;
        height: 95px;
    }
    
    .school-crest-container {
        margin-bottom: 18px;
    }
    
    .form {
        padding: 28px 26px 22px;
        border-radius: 10px;
    }
    
    .form-header {
        margin-bottom: 20px;
    }
    
    .product-name {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .form .title {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 12px;
        max-width: 220px;
        margin-bottom: 15px;
    }
    
    .input-field {
        height: 52px;
        margin-bottom: 16px;
    }
    
    .input-field input {
        padding: 0 15px 0 48px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .input-field label {
        left: 48px;
        font-size: 13px;
    }
    
    .input-field input:focus ~ label,
    .input-field input:valid ~ label {
        left: 15px;
        font-size: 10px;
    }
    
    .input-field i.icon {
        left: 15px;
        font-size: 16px;
    }
    
    .input-field i.showHidePw {
        right: 15px;
        font-size: 16px;
    }
    
    .caps-lock-warn {
        font-size: 12px;
        margin: -14px 0 16px;
    }
    
    .checkbox-content input {
        width: 15px;
        height: 15px;
    }
    
    .checkbox-content label,
    .forgot-link {
        font-size: 12px;
    }
    
    .checkbox-text {
        margin-bottom: 18px;
    }
    
    .input-field.button {
        height: 46px;
        margin-bottom: 18px;
    }
    
    .login-btn {
        font-size: 13px;
        border-radius: 10px;
    }
    
    .form-footer {
        margin-top: 18px;
        padding-top: 18px;
    }
    
    .form-footer p {
        font-size: 12px;
    }
    
    .contact-info {
        font-size: 10px;
    }
    
    .animated-icon,
    .pulse-icon,
    .rotate-icon,
    .bounce-icon,
    .glow-icon,
    .shake-icon,
    .swing-icon,
    .fade-icon {
        font-size: 12px;
        margin-right: 5px;
    }
}

/* Tablet Portrait (768px - 1023px) */
@media only screen and (max-width: 1023px) and (min-width: 768px) {
    .container.login {
        max-width: 420px;
    }
    
    .school-crest {
        width: 90px;
        height: 90px;
    }
    
    .form {
        padding: 30px 28px 24px;
    }
    
    .form .title {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 13px;
        max-width: 240px;
    }
    
    .input-field {
        height: 54px;
        margin-bottom: 18px;
    }
    
    .input-field input {
        font-size: 14px;
        padding: 0 16px 0 50px;
    }
    
    .input-field label {
        left: 50px;
        font-size: 14px;
    }
    
    .input-field i.icon {
        font-size: 17px;
        left: 16px;
    }
    
    .input-field i.showHidePw {
        font-size: 17px;
        right: 16px;
    }
    
    .login-btn {
        height: 48px;
        font-size: 14px;
    }
}

/* Mobile Landscape and Small Tablets (600px - 767px) */
@media only screen and (max-width: 767px) and (min-width: 600px) {
    .container.login {
        max-width: 90%;
    }
    
    .school-crest {
        width: 85px;
        height: 85px;
    }
    
    .school-crest-container {
        margin-bottom: 16px;
    }
    
    .form {
        border-radius: 10px;
        padding: 26px 24px 20px;
    }
    
    .form-header {
        margin-bottom: 18px;
    }
    
    .product-name {
        font-size: 11px;
        margin-bottom: 10px;
    }
    
    .form .title {
        font-size: 22px;
        margin-bottom: 5px;
    }
    
    .subtitle {
        font-size: 12px;
        margin-bottom: 14px;
        max-width: 220px;
    }
    
    .input-field {
        height: 50px;
        margin-bottom: 16px;
    }
    
    .input-field input {
        padding: 0 14px 0 46px;
        font-size: 13px;
        border-radius: 10px;
    }
    
    .input-field label {
        left: 46px;
        font-size: 13px;
    }
    
    .input-field input:focus ~ label,
    .input-field input:valid ~ label {
        font-size: 10px;
        left: 14px;
    }
    
    .input-field i.icon {
        left: 14px;
        font-size: 16px;
    }
    
    .input-field i.showHidePw {
        right: 14px;
        font-size: 16px;
    }
    
    .checkbox-text {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 16px;
    }
    
    .checkbox-content {
        margin-bottom: 10px;
    }
    
    .forgot-link {
        align-self: flex-start;
    }
    
    .checkbox-content input {
        width: 15px;
        height: 15px;
    }
    
    .checkbox-content label,
    .forgot-link {
        font-size: 12px;
    }
    
    .input-field.button {
        margin-bottom: 16px;
        height: 46px;
    }
    
    .login-btn {
        font-size: 13px;
        border-radius: 10px;
    }
    
    .form-footer {
        margin-top: 16px;
        padding-top: 16px;
    }
    
    .form-footer p {
        font-size: 12px;
    }
    
    .contact-info {
        font-size: 10px;
    }
}

/* Mobile Landscape (480px - 599px) */
@media only screen and (max-width: 599px) and (min-width: 480px) {
    .container.login {
        max-width: 95%;
    }
    
    .school-crest {
        width: 80px;
        height: 80px;
    }
    
    .school-crest-container {
        margin-bottom: 14px;
    }
    
    .form {
        border-radius: 10px;
        padding: 24px 22px 18px;
    }
    
    .form-header {
        margin-bottom: 16px;
    }
    
    .product-name {
        font-size: 10px;
        margin-bottom: 8px;
    }
    
    .form .title {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .subtitle {
        font-size: 11px;
        margin-bottom: 12px;
        max-width: 200px;
    }
    
    .input-field {
        height: 48px;
        margin-bottom: 14px;
    }
    
    .input-field input {
        padding: 0 12px 0 44px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .input-field label {
        left: 44px;
        font-size: 12px;
    }
    
    .input-field input:focus ~ label,
    .input-field input:valid ~ label {
        font-size: 10px;
        left: 12px;
    }
    
    .input-field i.icon {
        left: 13px;
        font-size: 15px;
    }
    
    .input-field i.showHidePw {
        right: 13px;
        font-size: 15px;
    }
    
    .caps-lock-warn {
        font-size: 11px;
        margin: -12px 0 14px;
    }
    
    .checkbox-text {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 14px;
    }
    
    .checkbox-content {
        margin-bottom: 10px;
    }
    
    .forgot-link {
        align-self: flex-start;
    }
    
    .checkbox-content input {
        width: 14px;
        height: 14px;
    }
    
    .checkbox-content label,
    .forgot-link {
        font-size: 11px;
    }
    
    .input-field.button {
        margin-bottom: 14px;
        height: 44px;
    }
    
    .login-btn {
        font-size: 12px;
        border-radius: 8px;
    }
    
    .form-footer {
        margin-top: 14px;
        padding-top: 14px;
    }
    
    .form-footer p {
        font-size: 11px;
    }
    
    .contact-info {
        font-size: 9px;
    }
    
    .animated-icon,
    .pulse-icon,
    .rotate-icon,
    .bounce-icon,
    .glow-icon,
    .shake-icon,
    .swing-icon,
    .fade-icon {
        font-size: 11px;
        margin-right: 4px;
    }
}

/* Mobile Portrait (320px - 479px) */
@media only screen and (max-width: 479px) {
    .login-container {
        padding: 15px 10px;
    }
    
    .container.login {
        max-width: 100%;
        padding: 0 5px;
    }
    
    .school-crest {
        width: 75px;
        height: 75px;
        padding: 8px;
    }
    
    .school-crest-container {
        margin-bottom: 12px;
    }
    
    .form {
        border-radius: 8px;
        padding: 22px 18px 16px;
    }
    
    .form-header {
        margin-bottom: 14px;
    }
    
    .product-name {
        font-size: 9px;
        margin-bottom: 8px;
        letter-spacing: 1px;
    }
    
    .product-name::after {
        width: 30px;
        bottom: -5px;
    }
    
    .form .title {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .subtitle {
        font-size: 11px;
        margin-bottom: 12px;
        max-width: 180px;
    }
    
    .input-field {
        height: 46px;
        margin-bottom: 12px;
    }
    
    .input-field input {
        padding: 0 12px 0 42px;
        font-size: 12px;
        border-radius: 8px;
    }
    
    .input-field label {
        left: 42px;
        font-size: 12px;
    }
    
    .input-field input:focus ~ label,
    .input-field input:valid ~ label {
        font-size: 9px;
        left: 12px;
        padding: 2px 6px;
    }
    
    .input-field i.icon {
        left: 12px;
        font-size: 14px;
    }
    
    .input-field i.showHidePw {
        right: 12px;
        font-size: 14px;
    }
    
    .caps-lock-warn {
        font-size: 10px;
        margin: -10px 0 12px;
        padding: 6px 10px;
    }
    
    .checkbox-text {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 12px;
    }
    
    .checkbox-content {
        margin-bottom: 8px;
    }
    
    .forgot-link {
        align-self: flex-start;
        margin-top: 0;
    }
    
    .checkbox-content input {
        width: 14px;
        height: 14px;
        margin-right: 8px;
    }
    
    .checkbox-content label,
    .forgot-link {
        font-size: 11px;
    }
    
    .input-field.button {
        margin-bottom: 14px;
        height: 42px;
    }
    
    .login-btn {
        font-size: 12px;
        border-radius: 8px;
    }
    
    .btn-text {
        margin-right: 6px;
    }
    
    .form-footer {
        margin-top: 14px;
        padding-top: 14px;
    }
    
    .form-footer p {
        font-size: 11px;
        margin-bottom: 6px;
    }
    
    .contact-info {
        font-size: 9px;
        margin-top: 8px;
    }
    
    .animated-icon,
    .pulse-icon,
    .rotate-icon,
    .bounce-icon,
    .glow-icon,
    .shake-icon,
    .swing-icon,
    .fade-icon {
        font-size: 10px;
        margin-right: 4px;
    }
    
    .con-alert-wrapper {
        top: 10px;
        right: 10px;
        max-width: calc(100% - 20px);
    }
    
    .con-alert-wrapper .toast {
        padding: 15px;
    }
    
    .content .icon {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }
    
    .details span {
        font-size: 16px;
    }
    
    .details p {
        font-size: 12px;
    }
}

/* Extra Small Mobile (max-width: 319px) */
@media only screen and (max-width: 319px) {
    .school-crest {
        width: 70px;
        height: 70px;
    }
    
    .form {
        padding: 20px 15px 14px;
    }
    
    .form .title {
        font-size: 16px;
    }
    
    .subtitle {
        font-size: 10px;
        max-width: 160px;
    }
    
    .input-field {
        height: 44px;
    }
    
    .input-field input {
        font-size: 11px;
        padding: 0 10px 0 40px;
    }
    
    .input-field label {
        left: 40px;
        font-size: 11px;
    }
    
    .input-field i.icon {
        left: 11px;
        font-size: 13px;
    }
    
    .input-field i.showHidePw {
        right: 11px;
        font-size: 13px;
    }
    
    .checkbox-content label,
    .forgot-link {
        font-size: 10px;
    }
    
    .input-field.button {
        height: 40px;
    }
    
    .login-btn {
        font-size: 11px;
    }
    
    .form-footer p,
    .contact-info {
        font-size: 10px;
    }
}