/* Auth Tabs Container - Minimal Underline Design */
.auth-tabs {
    display: inline-flex;
    background: transparent;
    border-radius: 0;
    padding: 0;
    margin: 20px auto 12px;
    border: none;
    box-shadow: none;
    gap: 0;
    position: relative;
}

/* ========================================
   Form Box Rounded Corners & Tooltip Fix
   ======================================== */
.login .login-box,
.signup .signup-box {
    border-radius: 10px;
    overflow: visible;
}

/* Target visible text/password inputs for rounded corners */
.login .login-box input.username,
.signup .signup-box input.username {
    border-radius: 10px 10px 0 0;
}

/* Login form: password gets bottom corners (2FA is hidden by default) */
.login #standard-mode input.password {
    border-radius: 0 0 10px 10px;
}

/* Signup form: email gets bottom corners */
.signup .signup-box input.email {
    border-radius: 0 0 10px 10px;
}

/* ========================================
   Forgot Password Form Styling
   ======================================== */
.forgotpass {
    padding: 30px 24px 40px;
    box-sizing: border-box;
}

.forgotpass-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    max-width: 340px;
    margin: 0 auto 28px;
    text-align: center;
    padding: 0 16px;
}

.forgotpass #forgot_cont {
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

.forgotpass .forgotpassword-box {
    border-radius: 10px;
    overflow: visible;
    width: 100%;
    box-sizing: border-box;
}

.forgotpass .forgotpassword-box input.email {
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8c4ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat 18px center !important;
    background-size: 20px 20px !important;
    background-color: #ffffff !important;
}

.forgotpass .forgotpassword-box input:focus,
.forgotpass .forgotpassword-box input:active {
    outline: none;
    border-color: rgba(0, 135, 196, 0.4) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 135, 196, 0.15) !important;
    background-color: #fafcff !important;
}

.forgotpass .forgotpassword-box input {
    color: #2d3748 !important;
}

.forgotpass .forgotpassword-box input::placeholder {
    color: #a0aec0 !important;
}

/* Forgot password button - Blue Theme */
.forgotpass .green-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #0087c4 0%, #006699 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 40px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 135, 196, 0.25);
    text-transform: none;
    letter-spacing: 0.02em;
    box-sizing: border-box;
    margin-top: 28px;
}

.forgotpass .green-btn:hover {
    background: linear-gradient(135deg, #009ad9 0%, #0087c4 100%);
    box-shadow: 0 4px 12px rgba(0, 135, 196, 0.35);
    transform: translateY(-1px);
}

.forgotpass .green-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 135, 196, 0.2);
}

/* Hash input rounded corners */
.hash-input {
    border-radius: 10px !important;
}

/* ========================================
   Form Input Focus/Active States
   ======================================== */
.login .login-box input:focus,
.signup .signup-box input:focus,
.login .login-box input:active,
.signup .signup-box input:active {
    outline: none;
    border-color: rgba(0, 135, 196, 0.4);
    box-shadow: inset 0 0 0 1px rgba(0, 135, 196, 0.15);
    background-color: #fafcff;
}

/* Override the default black focus outline for all auth inputs */
.login input:focus,
.signup input:focus,
.login input:active,
.signup input:active {
    outline: none;
    border-color: rgba(0, 135, 196, 0.4) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 135, 196, 0.15) !important;
    background-color: #fafcff !important;
}

/* ========================================
   Form Input Text Color (darker than placeholder)
   ======================================== */
.login input,
.signup input,
.login .login-box input,
.signup .signup-box input {
    color: #2d3748 !important;
}

.login input::placeholder,
.signup input::placeholder {
    color: #a0aec0 !important;
}

/* ========================================
   Auth Action Row - Voucher/2FA + Button Layout
   ======================================== */
.auth-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 24px auto 20px;
    flex-wrap: wrap;
}

/* ========================================
   Login/Signup Button Styling - Blue Theme
   ======================================== */
.login .green-btn.big-green-btn,
.signup .green-btn.big-green-btn {
    background: linear-gradient(135deg, #0087c4 0%, #006699 100%);
    border: none;
    color: #ffffff;
    font-weight: 600;
    font-size: 16px;
    padding: 14px 40px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 135, 196, 0.25);
    text-transform: none;
    letter-spacing: 0.02em;
}

.login .green-btn.big-green-btn:hover:not(:disabled),
.signup .green-btn.big-green-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #009ad9 0%, #0087c4 100%);
    box-shadow: 0 4px 12px rgba(0, 135, 196, 0.35);
    transform: translateY(-1px);
}

.login .green-btn.big-green-btn:active:not(:disabled),
.signup .green-btn.big-green-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(0, 135, 196, 0.2);
}

.login .green-btn.big-green-btn:disabled,
.signup .green-btn.big-green-btn:disabled {
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
    box-shadow: none;
}

/* ========================================
   Generate Username/Password Button Icons
   ======================================== */
.generate-icon-btn {
    position: absolute;
    right: 18px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    z-index: 10;
    opacity: 0.5;
    display: flex;
    align-items: center;
    justify-content: center;
}

#generate_username {
    top: 20px;
}

#generate_password {
    top: 80px;
}

.generate-icon-btn:hover {
    transform: scale(1.05);
    opacity: 0.85;
}

.generate-icon-btn:active {
    transform: scale(0.95);
}

.generate-icon-btn svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: #b8c4ce;
}

.generate-icon-btn:hover svg {
    stroke: #64748b;
}

/* Tab Buttons */
.auth-tab {
    padding: 8px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #9ca3af;
    transition: all 0.2s ease;
    border-radius: 0;
    min-width: auto;
    position: relative;
    letter-spacing: 0.02em;
}

/* Underline indicator */
.auth-tab::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0087c4;
    transition: width 0.2s ease;
    border-radius: 1px;
}

/* Active Tab */
.auth-tab.active {
    background: transparent;
    color: #0087c4;
    font-weight: 600;
    box-shadow: none;
}

.auth-tab.active::after {
    width: 100%;
}

/* Tab Hover */
.auth-tab:hover:not(.active) {
    color: #64748b;
    background: transparent;
}

.auth-tab:hover:not(.active)::after {
    width: 50%;
    background: #cbd5e1;
}

/* ========================================
   Standard Form Input Icons - Subtle SVGs
   All icons: 20px size, stroke-width 2, color #b8c4ce, position 18px from left
   ======================================== */

/* Username input - subtle user icon */
.login .username,
.signup .username {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8c4ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E") no-repeat 18px center !important;
    background-size: 20px 20px !important;
    background-color: #ffffff !important;
}

/* Password input - subtle lock icon */
.login .password,
.signup .password {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8c4ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E") no-repeat 18px center !important;
    background-size: 20px 20px !important;
    background-color: #ffffff !important;
}

/* Email input - subtle mail icon */
.login .email,
.signup .email {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8c4ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z'%3E%3C/path%3E%3Cpolyline points='22,6 12,13 2,6'%3E%3C/polyline%3E%3C/svg%3E") no-repeat 18px center !important;
    background-size: 20px 20px !important;
    background-color: #ffffff !important;
}

/* 2FA Code input - subtle key icon */
.login .code_2fa,
.signup .code_2fa {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8c4ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 2l-2 2m-7.61 7.61a5.5 5.5 0 1 1-7.778 7.778 5.5 5.5 0 0 1 7.777-7.777zm0 0L15.5 7.5m0 0l3 3L22 7l-3-3m-3.5 3.5L19 4'%3E%3C/path%3E%3C/svg%3E") no-repeat 18px center !important;
    background-size: 20px 20px !important;
    background-color: #ffffff !important;
}

/* Voucher input - subtle ticket icon */
.login .voucher,
.signup .voucher {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8c4ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 9V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v4a2 2 0 0 0 0 4v4a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2v-4a2 2 0 0 0 0-4z'%3E%3C/path%3E%3Cline x1='9' y1='3' x2='9' y2='21'%3E%3C/line%3E%3C/svg%3E") no-repeat 18px center !important;
    background-size: 20px 20px !important;
    background-color: #ffffff !important;
}

/* Hash Input Field - hash/pound sign icon matching other input icons */
.hash-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.5px;
    width: 100%;
    height: 60px;
    padding: 0 60px 0 55px;
    border: 1px solid rgba(50,50,50,0.1);
    border-radius: 6px;
    font-size: 0.75em;
    font-weight: 200;
    box-sizing: border-box;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23b8c4ce' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='4' y1='9' x2='20' y2='9'%3E%3C/line%3E%3Cline x1='4' y1='15' x2='20' y2='15'%3E%3C/line%3E%3Cline x1='10' y1='3' x2='8' y2='21'%3E%3C/line%3E%3Cline x1='16' y1='3' x2='14' y2='21'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 18px center;
    background-size: 20px 20px;
    transition: all 0.2s ease;
    position: relative;
}

.hash-input:focus {
    outline: none;
    border-color: #00a8e1;
}

/* Drag and drop states */
.hash-input.drag-over {
    border-color: #00a8e1 !important;
    background-color: rgba(0, 168, 225, 0.05);
    border-style: dashed;
    border-width: 2px;
}

.hash-input.hashing {
    background-color: #f8f9fa;
    cursor: wait;
}

/* Hash input wrapper for icon positioning */
.hash-input-wrapper {
    position: relative;
    width: 100%;
}

/* Fade background behind action icons to prevent text overlap */
.hash-input-wrapper::after {
    content: '';
    position: absolute;
    right: 1px;
    top: 1px;
    bottom: 1px;
    width: 80px;
    background: linear-gradient(to right, transparent, #ffffff 30%);
    pointer-events: none;
    z-index: 5;
    border-radius: 0 5px 5px 0;
}

/* Hash action icons (browse/generate) - subtle styling */
.hash-action-icon {
    position: absolute;
    right: 18px;
    top: 20px;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    z-index: 10;
    opacity: 0.6;
}

.hash-action-icon:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.hash-action-icon:active {
    transform: scale(0.95);
}

.hash-action-icon svg {
    width: 18px;
    height: 18px;
    display: block;
    stroke: #b8c4ce;
    stroke-width: 2;
}

.hash-action-icon:hover svg {
    stroke: #64748b;
}

/* Position multiple icons */
.hash-action-icon.browse-icon {
    right: 18px;
}

.hash-action-icon.generate-icon {
    right: 50px;
}

/* Hidden file input */
.hash-file-input {
    display: none;
}

/* Form Mode Visibility */
.form-mode {
    display: none;
}

.form-mode.active {
    display: block;
}

/* Wider container for hashed mode */
#hashed-mode {
    max-width: 520px;
    margin: 0 auto;
}

/* Make 2FA and voucher fields in hashed mode match hash input width */
#hashed-mode .code_2fa,
#hashed-mode .voucher {
    max-width: 100%;
}

/* Override parent container max-width for hashed mode */
.login .login-box:has(#hashed-mode.active) {
    max-width: 520px;
}

.signup #hashed-mode.active .signup-box {
    max-width: 520px;
}

/* Error Message Styling for Auth Pages */
.login .content_message,
.signup .content_message {
    max-width: 380px;
    width: 100%;
    margin: 0 auto 25px;
    border-radius: 12px;
    padding: 16px 18px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.6;
    animation: slideDown 0.3s ease;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 14px;
    text-align: left;
}

/* Wider error box for hashed mode - matches form field width */
.hash-mode-active .login .content_message,
.hash-mode-active .signup .content_message {
    max-width: 520px;
}

.login .content_message.error,
.signup .content_message.error {
    background: #fef5f5;
    border: 1.5px solid #f5c6cb;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.08), 0 1px 3px rgba(220, 53, 69, 0.06);
    color: #721c24;
}

/* Icon container for error message */
.login .content_message.error::before,
.signup .content_message.error::before {
    content: "⚠";
    font-size: 18px;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 6px;
    color: #dc3545;
}

/* Slide down animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hash Info Notice - Clean Modern Design */
.hash-info-notice {
    max-width: 520px;
    margin: 0 auto 24px;
    background: rgba(0, 135, 196, 0.04);
    border: 1px solid rgba(0, 135, 196, 0.2);
    border-radius: 10px;
    padding: 18px 20px;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.hash-info-icon {
    flex-shrink: 0;
    color: #b8c4ce;
    margin-top: 2px;
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.hash-info-text {
    flex: 1;
    text-align: left;
}

.hash-info-text strong {
    display: block;
    color: #2c3e50;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 5px;
    letter-spacing: -0.01em;
}

.hash-info-text span {
    display: block;
    color: #546e7a;
    font-size: 13px;
    line-height: 1.6;
}

/* Hash Backup Checkbox */
.hash-backup-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(0, 135, 196, 0.15);
    cursor: pointer;
    user-select: none;
}

/* Hide actual checkbox, use label styling instead */
.hash-backup-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Custom checkbox via label::before */
.hash-backup-checkbox label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid #b0bec5;
    border-radius: 3px;
    background-color: #ffffff;
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.hash-backup-checkbox label::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 50%;
    transform: translateY(-60%) rotate(45deg);
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2.5px 2.5px 0;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.hash-backup-checkbox label:hover::before {
    border-color: #0087c4;
}

.hash-backup-checkbox input[type="checkbox"]:checked + label::before {
    background-color: #0087c4;
    border-color: #0087c4;
}

.hash-backup-checkbox input[type="checkbox"]:checked + label::after {
    opacity: 1;
}

.hash-backup-checkbox input[type="checkbox"]:focus + label::before {
    border-color: #0087c4;
    box-shadow: 0 0 0 2px rgba(0, 135, 196, 0.2);
}

/* Label text styling - merged with positioning above */
.hash-backup-checkbox label {
    position: relative;
    padding-left: 28px;
    color: #546e7a;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    line-height: 1.4;
}

/* Auth header link - appears below tabs on signup */
.auth-header-link {
    text-align: center;
    font-size: 14px;
    color: #64748b;
    margin: 18px auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.auth-header-link span {
    color: #94a3b8;
}

.auth-header-link a {
    color: #0087c4;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px dotted rgba(0, 135, 196, 0.4);
    padding-bottom: 1px;
}

.auth-header-link a::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-header-link a:hover {
    color: #006699;
    background: transparent;
    border-bottom-color: #006699;
    border-bottom-style: solid;
}

.auth-header-link a:hover::after {
    transform: translateX(2px) rotate(45deg);
    opacity: 1;
}

/* Auth footer link styling */
.auth-footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 24px auto 18px;
    max-width: 380px;
}

/* Wider footer divider for hashed mode */
.hash-mode-active .auth-footer-divider {
    max-width: 520px;
}

.auth-footer-link {
    text-align: center;
    font-size: 15px;
    color: #546e7a;
    margin: 0 auto 20px;
}

.auth-footer-link span {
    color: #78909c;
}

.auth-footer-link a {
    color: #0087c4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

.auth-footer-link a:hover {
    color: #00a8e1;
    border-bottom-color: #00a8e1;
}

/* Footer links - kept for backwards compatibility */
.auth-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 24px;
    font-size: 14px;
}

.auth-footer-separator {
    color: #cbd5e0;
    font-size: 18px;
    line-height: 1;
    user-select: none;
}

.auth-footer-links a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    padding: 6px 0;
}

.auth-footer-links a:hover {
    color: #0087c4;
}

/* Secondary action links - matching auth-header-link style with chevron */
.signup .have_voucher,
.login .have_2fa {
    display: none; /* Hide by default, show in auth-action-row */
}

/* Auth action row layout */
.auth-action-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 28px auto 24px;
}

.auth-action-row .have_voucher,
.auth-action-row .have_2fa {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: #0087c4;
    text-decoration: none;
    transition: all 0.2s ease;
    border-bottom: 1px dotted rgba(0, 135, 196, 0.4);
    padding: 0;
    padding-bottom: 1px;
    margin: 0;
    white-space: nowrap;
}

.auth-action-row .have_voucher::after,
.auth-action-row .have_2fa::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 4px;
    border-right: 1.5px solid currentColor;
    border-top: 1.5px solid currentColor;
    transform: rotate(45deg);
    opacity: 0.7;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.auth-action-row .have_voucher:hover,
.auth-action-row .have_2fa:hover {
    color: #006699;
    border-bottom-style: solid;
    border-bottom-color: #006699;
}

.auth-action-row .have_voucher:hover::after,
.auth-action-row .have_2fa:hover::after {
    transform: translateX(2px) rotate(45deg);
    opacity: 1;
}

/* Button in action row */
.auth-action-row .green-btn.big-green-btn {
    margin: 0 !important;
}


/* Mobile Responsive - Consistent spacing for all auth forms */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on auth pages */
    .login,
    .signup,
    .white-section.login,
    .white-section.signup {
        overflow-x: hidden;
    }
    
    /* Consistent padding for ALL form containers - both standard and hashed */
    #login_cont,
    #signup_cont {
        padding: 0 16px;
        box-sizing: border-box;
    }
    
    /* Override fixed widths from windscribe.css for mobile */
    .login .login-box,
    .signup .signup-box {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
    
    /* Form mode containers */
    #standard-mode,
    #hashed-mode {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Constrain hash info notice */
    .hash-info-notice {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Constrain all inputs */
    .hash-input-wrapper,
    .hash-input,
    #hashed-mode .voucher,
    .login .login-box input,
    .signup .signup-box input {
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* Error messages and footer */
    .login .content_message,
    .signup .content_message,
    .auth-footer-divider {
        max-width: 100%;
    }

    /* Auth action row on tablet */
    .auth-action-row {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    /* Forgot password tablet styling */
    .forgotpass {
        padding: 24px 20px 36px;
    }

    .forgotpass-description {
        font-size: 13px;
        padding: 0 12px;
        margin-bottom: 24px;
    }

    .forgotpass #forgot_cont {
        max-width: 100%;
    }

    .forgotpass .forgotpassword-box {
        width: 100% !important;
        max-width: 400px !important;
        margin: 24px auto;
    }

    .forgotpass .green-btn {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .auth-tab {
        padding: 6px 14px;
        font-size: 12px;
    }

    .auth-header-link {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 13px;
    }

    .auth-header-link a {
        padding: 5px 10px;
    }
    
    .hash-input {
        font-size: 14px;
        padding-left: 50px;
        padding-right: 50px;
    }
    
    /* Reposition action icons on small screens */
    .hash-action-icon.browse-icon {
        right: 12px;
    }
    
    .hash-action-icon.generate-icon {
        right: 40px;
    }
    
    .login .content_message,
    .signup .content_message {
        font-size: 13px;
        padding: 14px 14px;
        margin: 0 auto 20px;
        max-width: 100%;
    }
    
    .hash-info-notice {
        font-size: 13px;
        padding: 14px 16px;
    }
    
    .auth-footer-divider {
        margin: 20px auto 16px;
        max-width: 100%;
    }
    
    .auth-footer-link {
        font-size: 14px;
        margin: 0 auto 16px;
    }
    
    .auth-footer-links {
        flex-direction: column;
        gap: 12px;
        font-size: 14px;
    }
    
    .auth-footer-separator {
        display: none;
    }
    
    /* Auth action row on mobile - stacked and centered */
    .auth-action-row {
        flex-direction: column-reverse;
        gap: 16px;
        align-items: center;
        width: 100%;
        padding: 0 16px;
        box-sizing: border-box;
    }

    .auth-action-row .have_voucher,
    .auth-action-row .have_2fa {
        font-size: 14px;
        order: 2;
    }

    /* Full width buttons in action row on mobile */
    .auth-action-row .green-btn.big-green-btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 30px;
        box-sizing: border-box;
        order: 1;
    }

    .login .green-btn.big-green-btn,
    .signup .green-btn.big-green-btn,
    .forgotpass .green-btn {
        width: 100%;
        max-width: 100%;
        padding: 14px 30px;
        box-sizing: border-box;
    }

    /* Forgot password mobile styling */
    .forgotpass {
        padding: 20px 16px 32px;
    }

    .forgotpass-description {
        font-size: 13px;
        padding: 0 8px;
        margin-bottom: 20px;
    }

    .forgotpass #forgot_cont {
        max-width: 100%;
        padding: 0;
    }

    .forgotpass .forgotpassword-box {
        width: 100% !important;
        max-width: 100% !important;
    }

    .forgotpass .forgotpassword-box input {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .forgotpass .green-btn {
        width: 100%;
        padding: 14px 20px;
        margin-top: 24px;
    }
}