.css-spinner {
    width: 28px;
    height: 28px;
    border: 4px solid #3ffcff;
    border-top: 4px solid rgba(255,255,255,0.85);
    border-radius: 50%;
    animation: css-spin 0.8s linear infinite;
    box-sizing: border-box;
}

@keyframes css-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
/* Spinner for Sign In button */
.ph-login-btn {
    position: relative;
    overflow: hidden;
}
.ph-login-btn .btn-text {
    display: inline-block;
    vertical-align: middle;
}
.spinner {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 28px;
    width: 28px;
    z-index: 2;
}
.ph-login-btn[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}
/* Modal styles for delete confirmation */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    justify-content: center; align-items: center;
}
/* Improved Modal styles for delete confirmation */
.modal-content {
    background: #fff;
    color: #181c24;
    padding: 2.5rem 2rem 2rem 2rem;
    border-radius: 12px;
    min-width: 340px;
    max-width: 90vw;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    position: relative;
}
.modal-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #181c24;
    display: block;
    letter-spacing: 0.01em;
}
.modal-message {
    font-size: 1.08rem;
    color: #333;
    margin-bottom: 1.5rem;
    margin-top: 0.5rem;
}
.modal-actions {
    margin-top: 1.2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}
.modal-btn {
    padding: 0.6rem 2.2rem;
    border: none;
    border-radius: 6px;
    background: #2d3748;
    color: #fff;
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 600;
    transition: background 0.15s, opacity 0.15s;
    outline: none;
}
.modal-btn.danger {
    background: #e53e3e;
}
.modal-btn:hover, .modal-btn:focus {
    opacity: 0.92;
    background: #222b3a;
}
.modal-btn.danger:hover, .modal-btn.danger:focus {
    background: #c53030;
}
/* --- Wide Single-Card Share Layout --- */
.share-wide-layout {
    min-height: 100vh;
    width: 100vw;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: linear-gradient(120deg, #0a1826 0%, #16243a 100%);
    padding-top: 48px;
}
.share-wide-card {
    background: rgba(10,24,38,0.72);
    border-radius: 28px;
    box-shadow: 0 8px 48px 0 #0ff4 0.5;
    padding: 48px 0 36px 0;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border: 1.5px solid #00e6d833;
}
.share-wide-card .form-head {
    margin-bottom: 1.5rem;
}
.share-wide-card .form-head h2 {
    color: #eaf6ff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.share-wide-card .subtitle {
    color: #b6d8f6;
    font-size: 1.08rem;
    margin-bottom: 1.2em;
}
.share-wide-card .input-group input,
.share-wide-card .input-group select {
    width: 100%;
    min-width: 320px;
    max-width: 100%;
    font-size: 1.13rem;
    padding: 1.1em 1.2em;
    box-sizing: border-box;
    background: #0e2236;
    color: #eaf6ff;
    border: 1.5px solid #23384d;
    border-radius: 1em;
    margin-bottom: 0.7em;
}
.share-wide-card .input-group label {
    color: #eaf6ff;
    font-weight: 600;
    margin-bottom: 0.3em;
    display: block;
}
.share-wide-card .button-row {
    display: flex;
    flex-direction: row;
    gap: 1.1em;
    align-items: center;
    margin-top: 1.2em;
    justify-content: flex-start;
}
.share-wide-card .action-btn, .share-wide-card .upload-btn {
    min-width: 160px;
    max-width: 160px;
    width: 160px;
    height: 48px;
    padding: 0;
    font-size: 1.08rem;
    border-radius: 2em;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-wide-card .upload-btn {
    background: linear-gradient(90deg, #00e6d8 0%, #7de2ff 100%);
    color: #0a1826;
    border: none;
    box-shadow: 0 2px 18px 0 #00e6d844;
}
.share-wide-card .upload-btn:hover {
    background: linear-gradient(90deg, #7de2ff 0%, #00e6d8 100%);
    color: #0a1826;
    box-shadow: 0 4px 28px 0 #00e6d866;
}
.share-wide-card .action-btn.btn-secondary {
    background: rgba(125,226,255,0.12);
    color: #7de2ff;
    border: 1.5px solid #7de2ff55;
}
.share-wide-card .action-btn.btn-secondary:hover {
    background: rgba(0,230,216,0.18);
    color: #00e6d8;
    border: 1.5px solid #00e6d8;
}
.share-wide-card .file-table {
    width: 100%;
    margin-top: 1.5em;
    background: none;
    color: #eaf6ff;
    border-radius: 1em;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.04rem;
}
.share-wide-card .file-table th, .share-wide-card .file-table td {
    padding: 0.9em 1.1em;
    text-align: left;
}
.share-wide-card .file-table th {
    color: #7de2ff;
    font-weight: 700;
    background: #0e2236;
    border-bottom: 1.5px solid #23384d;
}
.share-wide-card .file-table td {
    border-bottom: 1px solid #1a2c3d;
}
.share-wide-card .empty-state {
    color: #b6d8f6;
    text-align: center;
    padding: 1.5em 0;
}
@media (max-width: 1100px) {
    .share-wide-card {
        padding: 16px 0 12px 0;
        max-width: 100vw;
    }
    .share-wide-card .input-group input,
    .share-wide-card .input-group select {
        min-width: 0;
    }
}
/* Share form button row: equal width/height buttons */
.share-actions .upload-btn,
.share-actions .action-btn {
    min-width: 160px;
    max-width: 160px;
    width: 160px;
    height: 48px;
    padding: 0;
    font-size: 1.08rem;
    border-radius: 2em;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.share-actions .upload-btn {
    background: linear-gradient(90deg, #00e6d8 0%, #7de2ff 100%);
    color: #0a1826;
    border: none;
    box-shadow: 0 2px 18px 0 #00e6d844;
}
.share-actions .upload-btn:hover {
    background: linear-gradient(90deg, #7de2ff 0%, #00e6d8 100%);
    color: #0a1826;
    box-shadow: 0 4px 28px 0 #00e6d866;
}
/* File panel button row: equal width/height buttons */
.button-row {
    display: flex;
    flex-direction: row;
    gap: 1.1em;
    align-items: center;
    justify-content: flex-end;
}
.button-row .action-btn {
    min-width: 160px;
    max-width: 160px;
    width: 160px;
    height: 48px;
    padding: 0;
    font-size: 1.08rem;
    border-radius: 2em;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Toolbar actions: align buttons in a row, equal size */
.toolbar-actions {
    display: flex;
    flex-direction: row;
    gap: 1.1em;
    align-items: center;
}
.toolbar-actions .action-btn {
    min-width: 160px;
    max-width: 160px;
    width: 160px;
    height: 48px;
    padding: 0;
    font-size: 1.08rem;
    border-radius: 2em;
    font-weight: 600;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.toolbar-actions .btn-primary {
    background: linear-gradient(90deg, #00e6d8 0%, #7de2ff 100%);
    color: #0a1826;
    border: none;
    box-shadow: 0 2px 18px 0 #00e6d844;
}
.toolbar-actions .btn-primary:hover {
    background: linear-gradient(90deg, #7de2ff 0%, #00e6d8 100%);
    color: #0a1826;
    box-shadow: 0 4px 28px 0 #00e6d866;
}
.toolbar-actions .btn-secondary {
    background: rgba(125,226,255,0.12);
    color: #7de2ff;
    border: 1.5px solid #7de2ff55;
}
.toolbar-actions .btn-secondary:hover {
    background: rgba(0,230,216,0.18);
    color: #00e6d8;
    border: 1.5px solid #00e6d8;
}
.toolbar-actions .btn-ghost {
    background: rgba(255, 107, 129, 0.16);
    color: #ffd0d8;
    border: 1px solid rgba(255, 107, 129, 0.22);
    box-shadow: none;
    transition: background 0.2s, color 0.2s, border 0.2s;
}
.toolbar-actions .btn-ghost:hover {
    background: rgba(255, 107, 129, 0.26);
    color: #fff;
    border: 1px solid rgba(255, 107, 129, 0.4);
}
/* Widen input fields for better placeholder visibility */
/* Extra wide input fields for better placeholder visibility */
.ph-card .input-group input,
.ph-card .password-field input {
    width: 100%;
    min-width: 420px;
    max-width: 620px;
    font-size: 1.15rem;
    padding: 1.15em 1.3em;
    box-sizing: border-box;
}
@media (max-width: 900px) {
    .ph-card .input-group input,
    .ph-card .password-field input {
        min-width: 0;
        max-width: 100vw;
    }
}
/* --- Glassmorphic Blue/Teal Two-Panel Layout --- */
.ph-outer {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(120deg, #0a1826 0%, #16243a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ph-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    max-width: 1920px;
    min-width: 1200px;
    width: 99vw;
    background: none;
    border-radius: 32px;
    box-shadow: none;
    position: relative;
    z-index: 1;
    gap: 0;
    overflow: visible;
}
.ph-visual {
    flex: 1 1 0;
    min-width: 340px;
    max-width: 62%;
    padding: 4vw 2vw 4vw 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: rgba(10,24,38,0.32);
    color: #eaf6ff;
}
.ph-eyebrow {
    display: inline-block;
    background: rgba(0,255,255,0.08);
    color: #7de2ff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 999px;
    padding: 8px 22px;
    margin-bottom: 2.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ph-eyebrow-red {
    color: #00e6d8;
    background: none;
    font-weight: 700;
    margin-bottom: 0.5em;
    padding: 0;
}
.ph-visual h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #eaf6ff;
    margin-bottom: 1.2rem;
    line-height: 1.08;
    letter-spacing: -1.5px;
}
.ph-lead {
    color: #b6d8f6;
    font-size: 1.18rem;
    margin-bottom: 2.2rem;
}
.ph-badges {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.ph-badge-card {
    background: rgba(0,255,255,0.06);
    border: 1.5px solid #00e6d833;
    color: #eaf6ff;
    border-radius: 18px;
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    min-width: 180px;
    box-shadow: 0 2px 12px #00e6d811;
    font-size: 1.04rem;
    transition: box-shadow 0.2s;
}
.ph-badge-card strong {
    color: #eaf6ff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.ph-badge-card span {
    color: #b6d8f6;
    font-size: 1rem;
}
.ph-card {
    flex: 1 1 0;
    min-width: 320px;
    max-width: 38%;
    background: rgba(10,24,38,0.85);
    border-radius: 32px;
    box-shadow: 0 8px 48px 0 #0ff4 0.5;
    padding: 44px 38px 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 540px;
    position: relative;
    z-index: 1;
    align-items: flex-start;
    backdrop-filter: blur(16px) saturate(1.2);
    border: 1.5px solid #00e6d833;
}
.ph-form-head {
    margin-bottom: 1.5rem;
}
.ph-form-head h2 {
    color: #eaf6ff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.ph-subtitle {
    color: #b6d8f6;
    font-size: 1.08rem;
    margin-bottom: 1.2em;
}
.ph-login-btn {
    width: 100%;
    padding: 1.1em 0;
    background: linear-gradient(90deg, #00e6d8 0%, #7de2ff 100%);
    color: #0a1826;
    font-size: 1.18rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    box-shadow: 0 2px 18px 0 #00e6d844;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.18s;
    outline: none;
}
.ph-login-btn:hover {
    background: linear-gradient(90deg, #7de2ff 0%, #00e6d8 100%);
    color: #0a1826;
    box-shadow: 0 4px 28px 0 #00e6d866;
    transform: translateY(-2px) scale(1.03);
}
.ph-register-link {
    text-align: center;
    color: #eaf6ff;
    font-size: 1rem;
    margin-top: 1.5em;
}
.ph-register-link a {
    color: #7de2ff;
    text-decoration: underline;
    transition: color 0.18s;
    font-weight: 700;
}
.ph-register-link a:hover {
    color: #00e6d8;
}
@media (max-width: 1200px) {
    .ph-layout {
        max-width: 98vw;
        min-width: 0;
    }
    .ph-visual {
        min-width: 220px;
        max-width: 60%;
        padding: 3vw 1vw 2vw 1vw;
    }
    .ph-card {
        min-width: 220px;
        max-width: 40%;
        padding: 32px 12px 24px 12px;
    }
}
@media (max-width: 900px) {
    .ph-outer {
        align-items: flex-start;
    }
    .ph-layout {
        flex-direction: column;
        max-width: 100vw;
        min-width: 0;
        width: 100vw;
        border-radius: 22px;
    }
    .ph-visual {
        min-width: 0;
        max-width: 100vw;
        padding: 32px 8px 24px 8px;
        border-radius: 22px 22px 0 0;
    }
    .ph-card {
        min-width: 0;
        max-width: 100vw;
        padding: 28px 10px 24px 10px;
        border-radius: 0 0 22px 22px;
    }
}
/* --- Pizza Hut Style Two-Panel Layout --- */
.ph-outer {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(120deg, #0a1826 0%, #16243a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ph-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    max-width: 1280px;
    min-width: 720px;
    width: 92vw;
    background: none;
    border-radius: 32px;
    box-shadow: none;
    position: relative;
    z-index: 1;
    gap: 0;
    overflow: visible;
}
.ph-visual {
    flex: 1 1 0;
    min-width: 340px;
    max-width: 56%;
    padding: 4vw 2vw 4vw 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    background: none;
    color: #fff;
}
.ph-eyebrow {
    display: inline-block;
    background: rgba(0,255,255,0.08);
    color: #7de2ff;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 999px;
    padding: 8px 22px;
    margin-bottom: 2.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.ph-eyebrow-red {
    color: #00e6d8;
    background: none;
    font-weight: 700;
    margin-bottom: 0.5em;
    padding: 0;
}
.ph-visual h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.08;
    letter-spacing: -1.5px;
}
.ph-lead {
    color: #e0e0e0;
    font-size: 1.18rem;
    margin-bottom: 2.2rem;
}
.ph-badges {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.ph-badge-card {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid #ff563133;
    color: #fff;
    border-radius: 18px;
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    min-width: 180px;
    box-shadow: 0 2px 12px #ff563111;
    font-size: 1.04rem;
    transition: box-shadow 0.2s;
}
.ph-badge-card strong {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.ph-badge-card span {
    color: #e0e0e0;
    font-size: 1rem;
}
.ph-card {
    flex: 1 1 0;
    min-width: 320px;
    max-width: 38%;
    background: rgba(10,24,38,0.72);
    backdrop-filter: blur(16px) saturate(1.2);
    border-radius: 32px;
    box-shadow: 0 8px 48px 0 #000a;
    padding: 44px 38px 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 540px;
    position: relative;
    z-index: 1;
    align-items: flex-start;
}
.ph-form-head {
    margin-bottom: 1.5rem;
}
.ph-form-head h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.ph-subtitle {
    color: #e0e0e0;
    font-size: 1.08rem;
    margin-bottom: 1.2em;
}
.ph-login-btn {
    width: 100%;
    padding: 1.1em 0;
    background: linear-gradient(90deg, #00e6d8 0%, #7de2ff 100%);
    color: #0a1826;
    font-size: 1.18rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    box-shadow: 0 2px 18px 0 #ff563144;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.18s;
    outline: none;
}
.ph-login-btn:hover {
    background: linear-gradient(90deg, #7de2ff 0%, #00e6d8 100%);
    color: #0a1826;
    box-shadow: 0 4px 28px 0 #00e6d866;
    transform: translateY(-2px) scale(1.03);
}
.ph-register-link {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    margin-top: 1.5em;
}
.ph-register-link a {
    color: #7de2ff;
    text-decoration: underline;
    transition: color 0.18s;
    font-weight: 700;
}
.ph-register-link a:hover {
    color: #00e6d8;
}
@media (max-width: 1200px) {
    .ph-layout {
        max-width: 98vw;
        min-width: 0;
    }
    .ph-visual {
        min-width: 220px;
        max-width: 60%;
        padding: 3vw 1vw 2vw 1vw;
    }
    .ph-card {
        min-width: 220px;
        max-width: 40%;
        padding: 32px 12px 24px 12px;
    }
}
@media (max-width: 900px) {
    .ph-outer {
        align-items: flex-start;
    }
    .ph-layout {
        flex-direction: column;
        max-width: 100vw;
        min-width: 0;
        width: 100vw;
        border-radius: 22px;
    }
    .ph-visual {
        min-width: 0;
        max-width: 100vw;
        padding: 32px 8px 24px 8px;
        border-radius: 22px 22px 0 0;
    }
    .ph-card {
        min-width: 0;
        max-width: 100vw;
        padding: 28px 10px 24px 10px;
        border-radius: 0 0 22px 22px;
    }
}
/* --- Classic Centered Login Card --- */
.classic-login-center {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(120deg, #0a1a2f 0%, #14243a 100%);
}
.classic-login-card {
    background: rgba(18, 28, 38, 0.98);
    border-radius: 22px;
    box-shadow: 0 8px 48px 0 #000a, 0 1.5px 4px 0 #1a7cff22;
    padding: 44px 38px 36px 38px;
    max-width: 400px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.classic-login-card .form-head {
    margin-bottom: 1.5rem;
    text-align: center;
}
.classic-login-card h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.classic-login-card .subtitle {
    color: #b6d6ff;
    font-size: 1.08rem;
    margin-bottom: 1.2em;
}
.classic-login-card .register-link {
    text-align: center;
    color: #b6d6ff;
    font-size: 1rem;
    margin-top: 1.5em;
}
.classic-login-card .register-link a {
    color: #1a7cff;
    text-decoration: underline;
    transition: color 0.18s;
    font-weight: 700;
}
.classic-login-card .register-link a:hover {
    color: #00ffd0;
}
@media (max-width: 600px) {
    .classic-login-card {
        padding: 22px 8px 18px 8px;
        max-width: 98vw;
    }
}
/* --- Further Enhanced Auth/Share Styling --- */
.auth-outer, .share-outer {
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(120deg, #0a1a2f 0%, #14243a 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-layout, .share-layout {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    max-width: 1200px;
    min-width: 720px;
    width: 92vw;
    background: rgba(18, 28, 38, 0.97);
    border-radius: 32px;
    box-shadow: 0 8px 48px 0 #000a, 0 1.5px 4px 0 #1a7cff22;
    position: relative;
    z-index: 1;
    gap: 0;
    overflow: hidden;
}
.auth-layout::before, .share-layout::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(circle at 20% 30%, #1a7cff33 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, #00ffd033 0%, transparent 70%),
                linear-gradient(120deg, #0a1a2f 0%, #14243a 100%);
    animation: bgmove 16s linear infinite alternate;
}
@keyframes bgmove {
    0% { background-position: 0% 0%, 100% 100%, 0% 0%; }
    100% { background-position: 40% 60%, 60% 40%, 100% 100%; }
}
.auth-visual, .share-visual {
    flex: 1 1 0;
    min-width: 340px;
    max-width: 56%;
    padding: 4vw 2vw 4vw 3vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 0;
    box-shadow: none;
    background: none;
}
.auth-visual h1, .share-visual h1 {
    font-size: 2.7rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.08;
    letter-spacing: -1.5px;
    text-shadow: 0 2px 16px #1a7cff22;
}
.auth-visual .lead, .share-visual .lead {
    color: #b6d6ff;
    font-size: 1.18rem;
    margin-bottom: 2.2rem;
}
.hero-badges, .feature-panel, .inline-kpis {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.badge-card, .feature-card {
    background: rgba(255,255,255,0.06);
    border: 1.5px solid #1a7cff33;
    color: #fff;
    border-radius: 18px;
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    min-width: 180px;
    box-shadow: 0 2px 12px #1a7cff11;
    font-size: 1.04rem;
    transition: box-shadow 0.2s;
}
.badge-card strong, .feature-card strong {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.badge-card span, .feature-card span {
    color: #b6d6ff;
    font-size: 1rem;
}
.auth-card, .share-card {
    flex: 1 1 0;
    min-width: 320px;
    max-width: 44%;
    background: none;
    border-radius: 0;
    box-shadow: none;
    border-left: none;
    padding: 44px 38px 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 540px;
    position: relative;
    z-index: 1;
    align-items: flex-start;
}
.login-btn, .btn-primary, .upload-btn {
    width: 100%;
    padding: 1.1em 0;
    background: linear-gradient(90deg, #1a7cff 0%, #00ffd0 100%);
    color: #0b1a24;
    font-size: 1.18rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    box-shadow: 0 2px 18px 0 #1a7cff44, 0 0 12px 2px #00ffd055;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s, transform 0.18s;
    outline: none;
}
.login-btn:hover, .btn-primary:hover, .upload-btn:hover {
    background: linear-gradient(90deg, #00ffd0 0%, #1a7cff 100%);
    color: #0b1a24;
    box-shadow: 0 4px 28px 0 #1a7cff66, 0 0 18px 4px #00ffd077;
    transform: translateY(-2px) scale(1.03);
}
.auth-card .form-head, .share-card .form-head {
    margin-bottom: 1.5rem;
}
.auth-card .form-head h2, .share-card .form-head h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2em;
}
.auth-card .form-head .subtitle, .share-card .form-head .subtitle {
    color: #b6d6ff;
    font-size: 1.08rem;
    margin-bottom: 1.2em;
}
.input-group label {
    color: #b6d6ff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2em;
}
.input-group input[type="email"],
.input-group input[type="password"],
.input-group input[type="number"],
.input-group input[type="datetime-local"] {
    width: 100%;
    padding: 1.1em 1.1em 1.1em 1em;
    border-radius: 12px;
    border: 1.5px solid #1a7cff33;
    background: #181c24;
    color: #fff;
    font-size: 1.08rem;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: 0 1px 2px 0 #1a7cff11;
}
.input-group input:focus {
    border-color: #1a7cff;
    box-shadow: 0 0 0 2px #1a7cff44;
}
.input-group select {
    border-radius: 12px;
    border: 1.5px solid #1a7cff33;
    background: #181c24;
    color: #fff;
    font-size: 1.08rem;
    padding: 1.1em 1em;
    outline: none;
    transition: border 0.2s, box-shadow 0.2s;
}
.input-group select:focus {
    border-color: #1a7cff;
    box-shadow: 0 0 0 2px #1a7cff44;
}
.subtle-rule {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #1a7cff 60%, transparent);
    margin: 18px 0;
    border-radius: 2px;
    box-shadow: 0 0 8px #1a7cff33;
}
@media (max-width: 1200px) {
    .auth-layout, .share-layout {
        max-width: 98vw;
        min-width: 0;
    }
    .auth-visual, .share-visual {
        min-width: 220px;
        max-width: 60%;
        padding: 3vw 1vw 2vw 1vw;
    }
    .auth-card, .share-card {
        min-width: 220px;
        max-width: 40%;
        padding: 32px 12px 24px 12px;
        background: none;
    }
}
@media (max-width: 900px) {
    .auth-outer, .share-outer {
        align-items: flex-start;
    }
    .auth-layout, .share-layout {
        flex-direction: column;
        max-width: 100vw;
        min-width: 0;
        width: 100vw;
        border-radius: 22px;
    }
    .auth-visual, .share-visual {
        min-width: 0;
        max-width: 100vw;
        padding: 32px 8px 24px 8px;
        border-radius: 22px 22px 0 0;
    }
    .auth-card, .share-card {
        min-width: 0;
        max-width: 100vw;
        padding: 28px 10px 24px 10px;
        border-radius: 0 0 22px 22px;
        background: none;
    }
}
/* --- Share Page Two-Column Layout --- */
.share-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: radial-gradient(circle at 60% 10%, #1a2633 0%, #10151c 100%);
}
.share-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 8vw;
    background: none;
    min-height: 100vh;
}
.share-card {
    background: rgba(18, 18, 18, 0.98);
    border-radius: 28px;
    box-shadow: 0 8px 48px 0 #000a;
    max-width: 520px;
    margin: 4vh 6vw 4vh 0;
    padding: 44px 38px 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 540px;
}
@media (max-width: 900px) {
    .share-layout {
        grid-template-columns: 1fr;
    }
    .share-visual {
        min-height: 320px;
        padding: 32px 18px 24px 18px;
    }
    .share-card {
        padding: 28px 10px 24px 10px;
        border-radius: 18px;
        margin: 0 auto;
    }
}
:root {
    --bg: #06111f;
    --bg-soft: #0a1728;
    --surface: rgba(10, 23, 40, 0.82);
    --surface-strong: rgba(13, 31, 53, 0.95);
    --surface-border: rgba(148, 196, 255, 0.14);
    --text: #edf4ff;
    --muted: #91a4bf;
    --line: rgba(148, 196, 255, 0.16);
    --primary: #7dd3fc;
    --primary-deep: #38bdf8;
    --accent: #38f9d7;
    --danger: #ff6b81;
    --success: #37d67a;
    --warning: #fbbf24;
    --shadow: 0 24px 80px rgba(3, 8, 20, 0.45);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;
}

/* --- Login Page Modern Styling Enhancements --- */
.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 32px;
    align-items: center;
    padding: 32px 0;
    background: none;
}

.auth-visual {
    padding: 48px 40px 40px 48px;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
    background: rgba(10, 23, 40, 0.82);
    border-radius: var(--radius-xl);

/* --- Pizza Hut Style Auth Enhancements --- */
.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: radial-gradient(circle at 60% 10%, #1a2633 0%, #10151c 100%);
}
.auth-visual {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 0 0 8vw;
    background: none;
    min-height: 100vh;
}
.auth-visual .eyebrow {
    background: rgba(255, 86, 49, 0.12);
    color: #ff5631;
    font-weight: 700;
    font-size: 1.1rem;
    border-radius: 999px;
    padding: 8px 22px;
    margin-bottom: 2.2rem;
    border: none;
}
.auth-visual h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.2rem;
    line-height: 1.08;
    letter-spacing: -1.5px;
}
.auth-visual .lead {
    color: #e0e0e0;
    font-size: 1.18rem;
    margin-bottom: 2.2rem;
}
.hero-badges, .feature-panel, .inline-kpis {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 2.5rem;
}
.badge-card, .feature-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    border-radius: 18px;
    padding: 1.2rem 1.2rem 1rem 1.2rem;
    min-width: 180px;
    box-shadow: none;
}
.badge-card strong, .feature-card strong {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}
.badge-card span, .feature-card span {
    color: #e0e0e0;
    font-size: 1rem;
}
.auth-card {
    background: rgba(18, 18, 18, 0.98);
    border-radius: 28px;
    box-shadow: 0 8px 48px 0 #000a  ;
    max-width: 420px;
    margin: auto 6vw auto 0;
    padding: 44px 38px 36px 38px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 540px;
}
.form-head .eyebrow {
    color: #ff5631;
    background: none;
    font-weight: 700;
    font-size: 1.08rem;
    margin-bottom: 0.5em;
    padding: 0;
}
.form-head h2 {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 0.2em;
}
.form-head .subtitle {
    color: #e0e0e0;
    font-size: 1.08rem;
    margin-bottom: 1.2em;
}
.input-group label {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2em;
}
.input-group input[type="email"],
.input-group input[type="password"] {
    width: 100%;
    padding: 1.1em 1.1em 1.1em 1em;
    border-radius: 12px;
    border: 1.5px solid #222;
    background: #181818;
    color: #fff;
    font-size: 1.08rem;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.07);
}
.input-group input[type="email"]:focus,
.input-group input[type="password"]:focus {
    border-color: #ff5631;
    box-shadow: 0 0 0 2px #ff563144;
}
.password-field {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 1.2em;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #ffb199;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}
.login-btn, .btn-primary {
    width: 100%;
    padding: 1.1em 0;
    background: linear-gradient(90deg, #ff5631 0%, #ff3c00 100%);
    color: #fff;
    font-size: 1.18rem;
    font-weight: 700;
    border: none;
    border-radius: 999px;
    box-shadow: 0 2px 12px 0 #ff563133;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
.login-btn:hover, .btn-primary:hover {
    background: linear-gradient(90deg, #ff3c00 0%, #ff5631 100%);
    color: #fff;
    box-shadow: 0 4px 18px 0 #ff563144;
}
.register-link {
    text-align: center;
    color: #fff;
    font-size: 1rem;
    margin-top: 1.5em;
}
.register-link a {
    color: #ff5631;
    text-decoration: underline;
    transition: color 0.18s;
    font-weight: 700;
}
.register-link a:hover {
    color: #ff3c00;
}
.subtle-rule {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ff5631 60%, transparent);
    margin: 18px 0;
}
@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    .auth-visual {
        min-height: 320px;
        padding: 32px 18px 24px 18px;
    }
    .auth-card {
        padding: 28px 10px 24px 10px;
        border-radius: 18px;
        margin: 0 auto;
    }
}
    box-shadow: var(--shadow);
}

.auth-card {
    padding: 44px 38px 36px 38px;
    background: var(--surface-strong);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    max-width: 420px;
    margin: 0 auto;
}

.form-head h2 {
    color: #fff;
    font-size: 2.1rem;
    font-weight: 700;
    margin-bottom: 0.2em;
}

.form-head .subtitle {
    color: #b6c9e0;
    font-size: 1.08rem;
    margin-bottom: 1.2em;
}

.input-group label {
    color: #d7e7fb;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2em;
}

.input-group input[type="email"],
.input-group input[type="password"] {
    width: 100%;
    padding: 1.1em 1.1em 1.1em 1em;
    border-radius: var(--radius-md);
    border: 1.5px solid rgba(148, 196, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
    color: #eaf6ff;
    font-size: 1.08rem;
    transition: border 0.2s, box-shadow 0.2s;
    outline: none;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.07);
}
.input-group input[type="email"]:focus,
.input-group input[type="password"]:focus {
    border-color: #3ee6fa;
    box-shadow: 0 0 0 2px #3ee6fa44;
}

.password-field {
    position: relative;
}
.password-toggle {
    position: absolute;
    right: 1.2em;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6ad7ff;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    font-weight: 600;
}

.login-btn {
    width: 100%;
    padding: 1.1em 0;
    background: linear-gradient(90deg, #3ee6fa 0%, #1ed6ff 100%);
    color: #0b1a24;
    font-size: 1.18rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px 0 #1ed6ff33;
    cursor: pointer;
    margin-top: 0.5rem;
    transition: background 0.18s, box-shadow 0.18s, color 0.18s;
}
.login-btn:hover {
    background: linear-gradient(90deg, #1ed6ff 0%, #3ee6fa 100%);
    color: #0b1a24;
    box-shadow: 0 4px 18px 0 #3ee6fa44;
}

.register-link {
    text-align: center;
    color: #aee6ff;
    font-size: 1rem;
    margin-top: 1.5em;
}
.register-link a {
    color: #3ee6fa;
    text-decoration: underline;
    transition: color 0.18s;
}
.register-link a:hover {
    color: #1ed6ff;
}

@media (max-width: 900px) {
    .auth-layout {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
    }
    .auth-visual {
        min-height: 320px;
        padding: 32px 18px 24px 18px;
    }
    .auth-card {
        padding: 28px 10px 24px 10px;
        border-radius: 18px;
    }
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(56, 189, 248, 0.20), transparent 34%),
        radial-gradient(circle at 80% 10%, rgba(56, 249, 215, 0.14), transparent 28%),
        radial-gradient(circle at bottom right, rgba(125, 211, 252, 0.16), transparent 28%),
        linear-gradient(135deg, var(--bg), var(--bg-soft) 55%, #0d1f35 100%);
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 90%);
    opacity: 0.45;
}

a {
    color: var(--primary);
    text-decoration: none;
}

.page-shell {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 24px;
    align-items: center;
    padding: 32px 0;
}

.auth-visual,
.auth-card,
.panel,
.hero-banner,
.stat-card,
.landing-hero,
.feature-card,
.file-summary,
.access-panel,
.toolbar,
.navbar {
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    background: var(--surface);
    border: 1px solid var(--surface-border);
    box-shadow: var(--shadow);
}

.auth-visual,
.auth-card,
.landing-hero,
.panel,
.hero-banner,
.file-summary,
.access-panel {
    border-radius: var(--radius-xl);
}

.auth-visual {
    padding: 40px;
    min-height: 640px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.auth-visual::after,
.hero-banner::after,
.landing-hero::after {
    content: '';
    position: absolute;
    inset: auto -18% -30% auto;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 249, 215, 0.24), transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(125, 211, 252, 0.12);
    border: 1px solid rgba(125, 211, 252, 0.18);
    color: #d8f3ff;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 540px;
    display: grid;
    gap: 18px;
}

.hero-copy h1,
.landing-hero h1,
.page-title {
    font-size: clamp(2.3rem, 4vw, 4.4rem);
    line-height: 0.96;
}

.hero-copy .lead,
.landing-hero .lead,
.panel-intro,
.subtitle {
    font-size: 1rem;
    color: #c4d5eb;
}

.hero-badges,
.feature-grid,
.stat-grid,
.quick-actions {
    display: grid;
    gap: 14px;
}

.hero-badges {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.badge-card,
.feature-card,
.stat-card,
.mini-card {
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    background: rgba(9, 20, 35, 0.72);
    border: 1px solid rgba(148, 196, 255, 0.14);
}

.badge-card strong,
.stat-card strong,
.mini-card strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.badge-card span,
.stat-card span,
.mini-card span,
.feature-card p {
    color: var(--muted);
    font-size: 0.93rem;
}

.auth-card {
    padding: 36px;
}

.auth-card .form-head,
.panel-head,
.dashboard-header,
.toolbar,
.section-head,
.landing-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}

.auth-card .form-head,
.panel-head,
.section-head {
    margin-bottom: 22px;
}

.auth-card h2,
.panel h3,
.section-head h3,
.panel-head h3 {
    font-size: clamp(1.5rem, 2vw, 2rem);
}

.form-grid,
.stack,
.panel-stack {
    display: grid;
    gap: 16px;
}

.input-group {
    display: grid;
    gap: 9px;
}

.input-group label,
.field-label {
    font-size: 0.92rem;
    color: #d7e7fb;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 196, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input::placeholder,
textarea::placeholder {
    color: #7e92ab;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(56, 189, 248, 0.75);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.12);
    transform: translateY(-1px);
}

.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 600;
}

.password-rules {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(148, 196, 255, 0.12);
}

.password-rules h4 {
    font-size: 1rem;
    color: #fff;
}

.rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.rules-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.rules-list li::before {
    content: '•';
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1;
}

.rules-list li.is-valid {
    color: #dff9ea;
}

.rules-list li.is-valid::before {
    content: '✓';
    color: var(--success);
}

.strength-wrap {
    display: grid;
    gap: 8px;
}

.strength-track {
    width: 100%;
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #fb7185, #fbbf24, #38bdf8, #34d399);
    transition: width 0.25s ease;
}

.strength-label,
.helper-text,
.form-note,
.register-link,
.empty-state,
.status-message,
.table-caption {
    color: var(--muted);
    font-size: 0.92rem;
}

.strength-label strong {
    color: #fff;
}

.alert-list {
    display: grid;
    gap: 12px;
}

.alert-item {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(148, 196, 255, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.alert-item-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #ffffff;
}

.alert-item-head span {
    color: var(--muted);
    font-size: 0.86rem;
}

.alert-item p {
    margin: 0;
    color: #d8e7f8;
    font-size: 0.93rem;
}

.alert-item.warning {
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(251, 191, 36, 0.08);
}


.button-row,
.auth-actions,
.toolbar-actions,
.button-stack,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

button,
.btn,
.action-btn,
.login-btn,
.upload-btn,
.logout-btn {
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.login-btn,
.upload-btn,
.logout-btn,
.btn-primary {
    padding: 14px 20px;
    color: #02111f;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 16px 36px rgba(56, 189, 248, 0.22);
}

.btn-secondary,
.action-btn,
.btn-ghost {
    padding: 12px 18px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 196, 255, 0.16);
}

.btn-danger,
.delete {
    background: rgba(255, 107, 129, 0.16);
    color: #ffd0d8;
    border: 1px solid rgba(255, 107, 129, 0.22);
}

button:hover,
.btn:hover,
.action-btn:hover,
.login-btn:hover,
.upload-btn:hover,
.logout-btn:hover {
    transform: translateY(-1px);
}

.register-link,
.auth-footnote {
    text-align: center;
}

.register-link a,
.auth-footnote a {
    font-weight: 700;
}

.navbar {
    width: calc(100% - 32px);
    max-width: none;
    margin: 20px 16px 0;
    padding: 18px 20px;
    border-radius: 999px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    position: sticky;
    top: 18px;
    z-index: 20;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(125, 211, 252, 0.18), rgba(56, 249, 215, 0.22));
    border: 1px solid rgba(148, 196, 255, 0.16);
    color: #ecfbff;
    font-family: var(--font-display);
    font-weight: 700;
}

.brand-title {
    display: grid;
    gap: 4px;
}

.brand-title strong {
    font-size: 1.02rem;
    color: #fff;
}

.brand-title span,
.nav-subtitle {
    font-size: 0.86rem;
    color: var(--muted);
}

.page-shell,
.dashboard-container {
    display: grid;
    gap: 24px;
    padding: 28px 0 48px;
}

.hero-banner,
.landing-hero {
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.hero-banner .hero-copy,
.landing-hero .hero-copy {
    max-width: 720px;
}

.hero-meta,
.landing-meta,
.metric-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.metric-chip,
.pill,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(148, 196, 255, 0.12);
    color: #dce9fb;
    font-size: 0.88rem;
}

.stat-grid,
.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    margin-top: 22px;
}

.stat-card {
    min-height: 126px;
}

.stat-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin-bottom: 12px;
    background: rgba(125, 211, 252, 0.12);
    color: #d8f4ff;
}

.panel,
.file-summary,
.access-panel {
    padding: 26px;
}

.panel-grid {
    display: grid;
    gap: 20px;
}

.share-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.share-form-grid .share-actions,
.share-form-grid .share-status {
    grid-column: 1 / -1;
}

.share-form-grid .button-row {
    margin-top: 4px;
}

@media (max-width: 820px) {
    .share-form-grid {
        grid-template-columns: 1fr;
    }

    .share-form-grid .share-actions,
    .share-form-grid .share-status {
        grid-column: auto;
    }
}

.dashboard-header {
    margin-bottom: 14px;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(148, 196, 255, 0.12);
}

.file-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(9, 18, 31, 0.92);
}

.file-table th,
.file-table td {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(148, 196, 255, 0.08);
    text-align: left;
    vertical-align: middle;
}

.file-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: rgba(10, 22, 39, 0.98);
    color: #dff3ff;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.file-table tbody tr:hover {
    background: rgba(125, 211, 252, 0.05);
}

.file-table td {
    color: #e7f0fb;
}

.file-table .muted {
    color: var(--muted);
}

.action-btn {
    padding: 9px 14px;
    font-size: 0.88rem;
}

.dashboard-hero {
    display: grid;
    gap: 16px;
}

.file-picker,
.file-input,
.compact-input {
    padding: 15px 16px;
}

.status-message {
    min-height: 24px;
}

.status-message.success,
.toast.success {
    color: #d6ffe6;
}

.status-message.error,
.toast.error {
    color: #ffd7de;
}

.empty-state {
    padding: 24px;
    text-align: center;
    border-radius: var(--radius-lg);
    border: 1px dashed rgba(148, 196, 255, 0.18);
    background: rgba(255, 255, 255, 0.03);
}

.toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    min-width: 240px;
    max-width: min(92vw, 420px);
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(7, 16, 29, 0.96);
    border: 1px solid rgba(148, 196, 255, 0.16);
    box-shadow: var(--shadow);
    color: #f3f8ff;
    opacity: 0;
    transform: translateY(14px);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 50;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.toast-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.landing-shell {
    padding: 28px 0 50px;
}

.landing-hero {
    display: grid;
    gap: 20px;
    align-items: start;
}

.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.feature-card h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.subtle-rule {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 196, 255, 0.24), transparent);
    margin: 18px 0;
}

.inline-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-kpis .pill {
    background: rgba(255, 255, 255, 0.04);
}

.center {
    text-align: center;
}

.hide {
    display: none !important;
}

@media (max-width: 980px) {
    .auth-layout {
        grid-template-columns: 1fr;
    }

    .auth-visual {
        min-height: auto;
    }

    .hero-badges {
        grid-template-columns: 1fr;
    }

    .navbar,
    .auth-card .form-head,
    .panel-head,
    .dashboard-header,
    .landing-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar {
        border-radius: 24px;
    }
}

@media (max-width: 680px) {
    .auth-layout,
    .page-shell,
    .landing-shell {
        width: min(100% - 20px, 1200px);
    }

    .auth-card,
    .auth-visual,
    .hero-banner,
    .landing-hero,
    .panel,
    .file-summary,
    .access-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .file-table th,
    .file-table td {
        padding: 14px;
    }

    .button-row,
    .auth-actions,
    .toolbar-actions,
    .button-stack,
    .card-actions {
        flex-direction: column;
    }

    .btn,
    .action-btn,
    .login-btn,
    .upload-btn,
    .logout-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Modal for viewing encrypted file */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 8px;
}
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* FINAL FIX FOR ACTION COLUMN ALIGNMENT */

.file-table th:last-child,
.file-table td:last-child {
    text-align: center;
    vertical-align: middle;
    width: 380px;
}

.file-table td:last-child .button-row {
    display: grid;
    grid-template-columns: repeat(2, 160px);
    justify-content: center;
    gap: 12px;
}

.file-table td:last-child .action-btn {
    width: 160px;
    height: 52px;
}

/* ENCRYPTED MODAL */

.encrypted-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);

    justify-content: center;
    align-items: center;
}

.encrypted-modal-content {
    width: 90%;
    max-width: 800px;

    background: #081526;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 24px;

    padding: 24px;

    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.encrypted-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    margin-bottom: 20px;
}

.encrypted-modal-header h2 {
    color: white;
    margin: 0;
}

.close-modal-btn {
    width: 42px;
    height: 42px;

    border-radius: 50%;
    border: none;

    background: rgba(255,255,255,0.08);

    color: white;

    cursor: pointer;

    font-size: 18px;
}

.close-modal-btn:hover {
    background: rgba(255,255,255,0.16);
}

#encryptedText {
    width: 100%;
    height: 300px;

    background: #020b16;

    border: 1px solid rgba(255,255,255,0.08);

    border-radius: 16px;

    padding: 16px;

    color: #00ffd0;

    font-size: 14px;

    resize: none;

    outline: none;
}