/* =====================================================
   LOGIN V3 - VARIABLES & THEMES
   ===================================================== */

:root {
    /* Light Theme */
    --bg-primary: #f5f7fa;
    --bg-card: rgba(255, 255, 255, 0.8);
    --text-primary: #1a1a1a;
    --text-secondary: #6b7280;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --accent-primary: #8324bc;
    --accent-secondary: #4285f4;
    --success: #22c55e;
    --error: #ef4444;
    --warning: #f59e0b;
    --online: #10b981;
    --offline: #ef4444;
}

[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-card: rgba(30, 41, 59, 0.8);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* =====================================================
   SPLASH SCREEN - Loading Animation
   ===================================================== */

.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.splash-screen[data-theme="dark"] {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    animation: splashFadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes splashFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.splash-logo img {
    width: 320px;
    height: auto;
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 12px 24px rgba(131, 36, 188, 0.3));
}

.splash-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2.5rem;
    font-family: 'Lexend', sans-serif;
    letter-spacing: -0.02em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.splash-loader {
    width: 240px;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) inset;
}

.loader-bar {
    width: 45%;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 1));
    border-radius: 3px;
    animation: loadingSlide 1.5s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
}

.splash-version {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.8);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

@keyframes logoFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes loadingSlide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =====================================================
   MAIN LAYOUT
   ===================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-v3-body {
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    position: relative;
    overflow: hidden;
    /* Prevent scrolling */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    width: 100%;
    /* Ensure no horizontal overflow */
    max-width: 100vw;
}

.login-v3-body[data-theme="dark"] {
    background: linear-gradient(135deg, #050510 0%, #0a0515 100%) !important;
}

/* Animated Background Circles */
.login-v3-body::before,
.login-v3-body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 20s ease-in-out infinite;
    transition: background 0.8s ease;
}

.login-v3-body[data-theme="dark"]::before,
.login-v3-body[data-theme="dark"]::after {
    background: rgba(255, 255, 255, 0.08);
}

.login-v3-body::before {
    width: 500px;
    height: 500px;
    top: -250px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.login-v3-body::after {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: -100px;
    animation: float 20s ease-in-out infinite 2s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

.login-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =====================================================
   GLASS CARD
   ===================================================== */

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 28px;
    padding: 3rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(30px) saturate(150%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
    overflow: hidden;
    transition: background 0.6s ease, border-color 0.6s ease, box-shadow 0.6s ease;
}

[data-theme="dark"] .login-card {
    background: rgba(20, 20, 35, 0.95);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

/* Card highlight effect */
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(131, 36, 188, 0.5), transparent);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.main-logo {
    width: 240px;
    height: auto;
    margin-bottom: 1.5rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 8px 16px rgba(131, 36, 188, 0.2));
    animation: logoPulse 3s ease-in-out infinite;
}

.main-logo:hover {
    transform: scale(1.08) rotate(2deg);
}

@keyframes logoPulse {

    0%,
    100% {
        filter: drop-shadow(0 8px 16px rgba(131, 36, 188, 0.2));
    }

    50% {
        filter: drop-shadow(0 12px 24px rgba(131, 36, 188, 0.35));
    }
}

.main-title {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    font-family: 'Lexend', sans-serif;
    letter-spacing: -0.02em;
    transition: background 0.6s ease;
}

[data-theme="dark"] .main-title {
    background: linear-gradient(135deg, #9d8bff, #b794f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* =====================================================
   LOGIN TYPE TOGGLE
   ===================================================== */

.input-type-toggle {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    background: rgba(131, 36, 188, 0.08);
    padding: 0.375rem;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) inset;
}

[data-theme="dark"] .input-type-toggle {
    background: rgba(255, 255, 255, 0.05);
}

.toggle-btn {
    flex: 1;
    padding: 0.875rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
    position: relative;
}

.toggle-btn i {
    margin-right: 0.625rem;
    font-size: 1rem;
}

.toggle-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    transform: translateY(-1px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toggle-btn.active::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

[data-theme="dark"] .toggle-btn.active {
    background: linear-gradient(135deg, #7c66dc, #9d8bff);
    box-shadow: 0 4px 12px rgba(157, 139, 255, 0.3);
}

.toggle-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.5);
}

/* =====================================================
   FORM ELEMENTS
   ===================================================== */

.login-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

/* Smooth transition when switching login/email mode */
#username {
    animation: inputFadeIn 0.4s ease-out;
}

@keyframes inputFadeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-theme="dark"] input {
    background: rgba(255, 255, 255, 0.05);
}

input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

[data-theme="dark"] input:focus {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.toggle-pass-btn {
    position: absolute;
    right: calc(0.5rem + 15px) !important;
    top: 50% !important;
    transform: translateY(calc(-50% - 5px)) !important;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.625rem !important;
    transition: color 0.3s ease;
    z-index: 10;
}

.toggle-pass-btn:hover {
    color: #667eea !important;
}

/* CapsLock Warning */
.caps-warning {
    display: none;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border-left: 3px solid var(--warning);
    border-radius: 6px;
    font-size: 0.8125rem;
    color: var(--warning);
    animation: slideDown 0.3s ease;
}

.caps-warning.show {
    display: block;
}

.caps-warning i {
    margin-right: 0.5rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error Message */
.error-message {
    display: none;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid var(--error);
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--error);
    animation: shake 0.5s ease;
}

.error-message.show {
    display: block;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-10px);
    }

    75% {
        transform: translateX(10px);
    }
}

/* Submit Button */
.btn-primary {
    width: 100%;
    padding: 1.125rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 1.0625rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    letter-spacing: 0.02em;
}

.btn-primary::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;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.btn-primary.loading {
    pointer-events: none;
}

.btn-primary.loading .btn-text,
.btn-primary.loading .btn-icon {
    opacity: 0;
}

.btn-loader {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
}

.btn-primary.loading .btn-loader {
    display: block;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1rem;
}

.link-secondary {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.link-secondary:hover {
    color: var(--accent-primary);
}

/* =====================================================
   FOOTER STATUS
   ===================================================== */

.login-footer {
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .login-footer {
    border-top-color: rgba(255, 255, 255, 0.06);
}

.status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-secondary);
    animation: pulse 2s ease-in-out infinite;
}

.status-badge.online .status-dot {
    background: var(--online);
}

.status-badge.offline .status-dot {
    background: var(--offline);
}

.status-badge.slow .status-dot {
    background: var(--warning);
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.theme-toggle {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border: 1px solid rgba(102, 126, 234, 0.2);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #667eea;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.125rem;
}

.theme-toggle:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.version-info {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.separator {
    margin: 0 0.5rem;
}

/* =====================================================
   MODAL - Password Reset
   ===================================================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    box-shadow: var(--shadow);
    animation: modalSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.reset-message {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: none;
}

.reset-message.show {
    display: block;
}

.reset-message.success {
    background: rgba(34, 197, 94, 0.1);
    color: var(--success);
    border-left: 3px solid var(--success);
}

.reset-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: var(--error);
    border-left: 3px solid var(--error);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    gap: 0.75rem;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(131, 36, 188, 0.05);
    border-color: var(--accent-primary);
}

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */

@media (max-width: 768px) {

    /* Hide decorative circles on mobile to prevent overflow */
    .login-v3-body::before,
    .login-v3-body::after {
        display: none;
    }

    .login-container {
        max-width: 100%;
        padding: 0 0.75rem;
    }

    .login-card {
        padding: 2.5rem 2rem;
        border-radius: 24px;
    }

    .main-logo {
        width: 190px;
        margin-bottom: 1.25rem;
    }

    .main-title {
        font-size: 1.5rem;
        margin-bottom: 0.625rem;
    }

    .subtitle {
        font-size: 0.9375rem;
    }

    .input-type-toggle {
        margin-bottom: 1.75rem;
    }

    .toggle-btn {
        padding: 0.75rem 0.875rem;
        font-size: 0.875rem;
    }

    .toggle-btn i {
        font-size: 0.9375rem;
    }

    label {
        font-size: 0.8125rem;
    }

    input {
        padding: 0.8125rem 0.875rem 0.8125rem 2.5rem;
        font-size: 0.875rem;
    }

    .input-wrapper i {
        left: 0.875rem;
        font-size: 0.875rem;
    }

    .btn-primary {
        padding: 1rem;
        font-size: 1rem;
    }

    .splash-logo img {
        width: 260px;
    }

    .splash-text {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }

    .splash-loader {
        width: 200px;
    }

    .modal-content {
        margin: 1rem;
        max-width: calc(100% - 2rem);
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 2rem 1.5rem;
        border-radius: 20px;
    }

    .main-logo {
        width: 160px;
    }

    .main-title {
        font-size: 1.375rem;
    }

    .subtitle {
        font-size: 0.875rem;
    }

    .input-type-toggle {
        padding: 0.3125rem;
        gap: 0.375rem;
        margin-bottom: 1.5rem;
    }

    .toggle-btn {
        padding: 0.6875rem 0.75rem;
        font-size: 0.8125rem;
        border-radius: 10px;
    }

    .toggle-btn i {
        margin-right: 0.5rem;
        font-size: 0.875rem;
    }

    input {
        padding: 0.75rem 0.75rem 0.75rem 2.375rem;
        font-size: 0.8125rem;
        border-radius: 10px;
    }

    .input-wrapper i {
        left: 0.75rem;
    }

    .btn-primary {
        padding: 0.9375rem;
        font-size: 0.9375rem;
        border-radius: 12px;
    }

    .login-footer {
        padding-top: 1.75rem;
    }

    .status-row {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .status-badge {
        justify-content: center;
    }

    .theme-toggle {
        width: 100%;
        height: 44px;
        border-radius: 12px;
    }

    /* Disable rotation animation on mobile rectangular button */
    .theme-toggle:hover {
        transform: scale(1.05);
        /* No rotation to avoid rectangle skewing */
    }

    .version-info {
        font-size: 0.6875rem;
        flex-wrap: wrap;
        gap: 0.25rem;
    }

    .splash-logo img {
        width: 220px;
        margin-bottom: 1.5rem;
    }

    .splash-text {
        font-size: 1.25rem;
        margin-bottom: 1.75rem;
        padding: 0 1rem;
    }

    .splash-loader {
        width: 170px;
        height: 4px;
    }

    .splash-version {
        font-size: 0.875rem;
    }

    .modal-header h2 {
        font-size: 1.125rem;
    }

    .modal-body {
        padding: 1.25rem;
    }

    .modal-footer {
        padding: 1.25rem;
        flex-direction: column;
    }

    .btn-secondary,
    .modal-footer .btn-primary {
        width: 100%;
    }
}

@media (max-width: 360px) {
    .login-card {
        padding: 1.75rem 1.25rem;
    }

    .main-title {
        font-size: 1.25rem;
    }

    .toggle-btn {
        padding: 0.625rem;
        font-size: 0.75rem;
    }

    .toggle-btn i {
        display: none;
        /* Hide icons on very small screens */
    }
}