﻿/* Password Manager Styles - Clean, Modern UI inspired by Google/Apple */

:root {
    --primary-color: #4285f4;
    --primary-hover: #3367d6;
    --secondary-color: #f8f9fa;
    --text-color: #202124;
    --text-secondary: #5f6368;
    --border-color: #dadce0;
    --error-color: #ea4335;
    --success-color: #34a853;
    --warning-color: #fbbc04;
    --shadow: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.24);
    --shadow-elevated: 0 4px 8px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
    --border-radius: 8px;
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: #ffffff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Remove container padding on auth pages */
.auth-section .container {
    padding: 0;
    max-width: none;
    width: 100%;
}

/* Header */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    height: 56px;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
    padding: 8px;
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.8;
}

.logo svg {
    flex-shrink: 0;
}

/* Search Container */
.search-container {
    position: relative;
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
}

.search-bar {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    background: #f5f5f5;
    transition: var(--transition);
}

.search-bar:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 1px 6px rgba(66, 133, 244, 0.2);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #757575;
    pointer-events: none;
}

.search-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Header Right */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.user-profile-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile-icon:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    display: none;
    z-index: 1000;
}

.user-dropdown.active {
    display: block;
}

.user-dropdown-email {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 13px;
    color: var(--text-secondary);
    word-break: break-word;
}

.user-dropdown a {
    display: block;
    padding: 12px 16px;
    color: var(--text-color);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
}

.user-dropdown a:hover {
    background: #f5f5f5;
    color: var(--primary-color);
}

/* Main Content */
.main {
    min-height: calc(100vh - 73px);
    padding: 32px 0;
}

/* Main content when not logged in (no header) */
body:not(.has-debug-banner) .main:has(.auth-section) {
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When debug banner is present */
body.has-debug-banner .main:has(.auth-section) {
    min-height: calc(100vh - 60px);
    height: calc(100vh - 60px);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Authentication Section */
.auth-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1;
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-elevated);
    overflow: hidden;
    margin: auto;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.auth-form {
    padding: 32px;
    display: none;
}

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

.auth-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.auth-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.auth-logo svg {
    flex-shrink: 0;
}

.auth-form h2 {
    font-size: 24px;
    font-weight: 500;
    margin: 0;
}

.auth-description {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 14px;
}

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.password-input-group {
    display: flex;
    gap: 8px;
}

.password-input-group input {
    flex: 1;
}

/* 6-Digit Code Input */
.code-input-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.code-input {
    width: 45px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    background-color: #ffffff;
}

.code-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.code-input.filled {
    border-color: var(--primary-color);
    background-color: #f8f9ff;
}

.code-input.error {
    border-color: var(--error-color);
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: #f1f3f4;
}

.btn .icon {
    display: inline-flex;
    align-items: center;
    margin-right: 8px;
}

.btn .icon svg {
    display: block;
}

.btn-danger {
    background-color: var(--error-color);
    color: white;
}

.btn-danger:hover {
    background-color: #d33b2c;
}

.btn-small {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-icon {
    padding: 6px 8px;
    font-size: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition);
    border-radius: 4px;
}

.btn-icon:hover {
    color: var(--primary-color);
    background-color: rgba(66, 133, 244, 0.1);
}

.full-width {
    width: 100%;
}

/* Dashboard */
.dashboard-controls {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

/* Mobile Search - Hidden on Desktop */
.mobile-search-container {
    display: none;
    position: relative;
    flex: 1;
}

.mobile-search-input {
    width: 100%;
    padding: 10px 16px 10px 44px;
    border: 1px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    background: #f5f5f5;
    transition: var(--transition);
}

.mobile-search-input:focus {
    outline: none;
    background: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 1px 6px rgba(66, 133, 244, 0.2);
}

.mobile-search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #757575;
    pointer-events: none;
}

.mobile-search-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Password Container */
.password-container {
    width: 100%;
    display: block;
}

/* Password Table */
.password-table-container {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: block;
}

.password-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    display: table;
    table-layout: auto;
}

.password-table th {
    background-color: var(--secondary-color);
    padding: 16px;
    text-align: left;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
}

/* Drag handle column - fixed narrow width */
.password-table th:nth-child(1),
.password-table td:nth-child(1) {
    width: 40px;
}

.password-table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.password-table tr:last-child td {
    border-bottom: none;
}

.password-table tr:hover {
    background-color: rgba(66, 133, 244, 0.05);
}

.password-table-title {
    font-weight: 500;
    color: var(--text-color);
}

/* Title/Username Toggle Wrapper */
.title-username-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

.title-username-wrapper .title-text,
.title-username-wrapper .username-text {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.title-username-wrapper .username-text {
    display: none;
    color: var(--text-secondary);
    font-style: italic;
}

.title-username-wrapper .title-text {
    display: block;
}

/* Desktop: Show username on hover */
@media (min-width: 769px) {
    .title-username-wrapper:hover .title-text {
        display: none;
    }

    .title-username-wrapper:hover .username-text {
        display: block;
    }
}

/* Mobile: Always show title, hide username column */
.username-column {
    display: table-cell;
}

.password-table-url {
    color: var(--primary-color);
    text-decoration: none;
    word-break: break-all;
}

.password-table-url:hover {
    text-decoration: underline;
}

.password-table-username {
    color: var(--text-secondary);
}

.password-table-password {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    letter-spacing: 2px;
    color: var(--primary-color);
    transition: var(--transition);
    user-select: none;
    font-weight: normal;
}

.password-table-actions {
    display: flex;
    gap: 8px;
}

.password-table-date {
    color: var(--text-secondary);
    font-size: 12px;
}

/* Advanced Toggle */
.advanced-toggle-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    padding: 0;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin-bottom: 12px;
}

.advanced-toggle-btn:hover,
.advanced-toggle-btn:focus-visible {
    text-decoration: underline;
}

.advanced-toggle-btn:focus {
    outline: none;
}

.advanced-toggle-btn .arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    transition: transform 0.2s ease-in-out;
    transform-origin: center;
}

.advanced-toggle-btn.is-open .arrow {
    transform: rotate(90deg);
}

/* Password Cell Controls */
.password-cell {
    position: relative;
}

/* Password Reveal Styles */
.password-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 8px;
    cursor: pointer;
}

.password-wrapper:focus,
.password-wrapper:focus-visible,
.password-wrapper:active {
    outline: none;
    box-shadow: none;
    border: none;
}

.password-reveal {
    font-family: 'Arial', 'Helvetica Neue', Helvetica, sans-serif;
    letter-spacing: 0.04em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--primary-color);
    transition: filter 0.2s ease, font-weight 0.2s ease;
    user-select: none;
    max-width: 100%;
    display: block;
}

.password-reveal.blurred {
    filter: blur(6px);
    font-weight: normal;
}

.password-wrapper.password-visible .password-reveal {
    font-weight: 600;
    filter: none;
    user-select: text;
}

.copy-hint {
    font-size: 10px;
    color: #9ca3af;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease;
    flex-shrink: 0;
}

.password-wrapper.password-visible .copy-hint {
    opacity: 1;
    visibility: visible;
}

.password-delete-zone {
    position: fixed;
    top: 96px;
    left: 50%;
    transform: translate(-50%, -12px);
    background: #ffffff;
    border: 2px dashed rgba(220, 38, 38, 0.35);
    color: var(--error-color);
    padding: 12px 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    z-index: 1200;
}

.password-delete-zone svg {
    display: block;
}

.password-delete-zone * {
    pointer-events: none;
}

.password-delete-zone span {
    font-size: 14px;
    font-weight: 500;
    color: inherit;
}

.password-delete-zone.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.password-delete-zone.drag-over {
    background: #fee2e2;
    border-color: rgba(220, 38, 38, 0.6);
}



.password-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.password-actions {
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: var(--transition);
}

.password-cell:hover .password-actions {
    opacity: 1;
}

/* Drag and Drop Styles - Similar to Unit Planner */
.drag-handle-cell {
    width: 40px;
    padding: 0;
    vertical-align: middle;
    text-align: center;
}

.drag-handle {
    cursor: grab;
    color: var(--text-secondary);
    padding: 8px;
    border-radius: 4px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.drag-handle:hover {
    background-color: rgba(66, 133, 244, 0.1);
    color: var(--primary-color);
}

.drag-handle:active {
    cursor: grabbing;
}

.sortable-row {
    transition: all 0.2s ease;
}

.sortable-row.dragging {
    opacity: 0.7;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    background-color: #f8f9ff;
}

.sortable-row.drag-over {
    border-top: 2px solid var(--primary-color);
}

/* Inline Editing Styles */
.editable {
    cursor: pointer;
    position: relative;
    transition: var(--transition);
}

.editable:hover {
    background-color: rgba(66, 133, 244, 0.05);
    border-radius: 4px;
}

.editable::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    opacity: 0;
    transition: var(--transition);
}

.editable:hover::after {
    opacity: 0.5;
}

.inline-input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    background: white;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* Password Cards - MOBILE FALLBACK */
.password-list {
    display: none;
}

.password-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 20px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.password-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.password-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.password-card-title {
    font-weight: 500;
    font-size: 16px;
    color: var(--text-color);
    margin: 0;
}

.password-card-url {
    color: var(--text-secondary);
    font-size: 14px;
    text-decoration: none;
    word-break: break-all;
}

.password-card-username {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

.password-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #ffffff;
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 24px 0;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-color);
}

.modal-body {
    padding: 24px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Password Details */
.password-details {
    margin-bottom: 24px;
}

.detail-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.detail-row label {
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 4px;
    color: var(--text-secondary);
}

.detail-row span {
    font-size: 16px;
    word-break: break-all;
}

.copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-row span {
    flex: 1;
}

/* Messages */
.message {
    margin-top: 16px;
    padding: 12px;
    border-radius: var(--border-radius);
    font-size: 14px;
    display: none;
}

.message.success {
    background-color: rgba(52, 168, 83, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(52, 168, 83, 0.2);
}

.message.error {
    background-color: rgba(234, 67, 53, 0.1);
    color: var(--error-color);
    border: 1px solid rgba(234, 67, 53, 0.2);
}

.message.show {
    display: block;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
}

.toast {
    background: #ffffff;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-elevated);
    padding: 16px;
    margin-bottom: 12px;
    min-width: 300px;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

.toast.success {
    border-left-color: var(--success-color);
}

.toast.error {
    border-left-color: var(--error-color);
}

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

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

.toast-message {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 8px;
    color: var(--text-color);
}

.empty-state p {
    margin-bottom: 24px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .header {
        padding: 0 16px;
        height: 56px;
    }

    .mobile-menu-toggle {
        display: block;
    }

    /* Hide header search, show mobile search */
    .search-container {
        display: none;
    }

    .mobile-search-container {
        display: block;
        width: 100%;
    }

    .dashboard-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    #addPasswordBtn {
        width: 100%;
    }

    .password-table-container {
        margin: 0;
        overflow-x: auto;
    }

    .password-table {
        width: 100%;
        font-size: 14px;
        border-collapse: collapse;
        display: table;
        table-layout: auto;
    }
    .password-table thead {
        display: table-header-group;
    }
    .password-table tr {
        display: table-row;
    }
    .password-table th,
    .password-table td {
        display: table-cell;
        text-align: left;
        padding: 12px 8px;
        border-bottom: 1px solid #eee;
        word-break: break-word;
    }
    .password-table td::before {
        content: none;
    }
    .drag-handle-cell {
        display: none !important;
    }

    /* Hide drag handle, username, URL/date columns on mobile */
    .password-table th:nth-child(1),
    .password-table td:nth-child(1),
    .password-table th:nth-child(3),
    .password-table td:nth-child(3),
    .password-table th:nth-child(5),
    .password-table td:nth-child(5),
    .password-table th:nth-child(6),
    .password-table td:nth-child(6) {
        display: none !important;
    }

    /* Make mobile columns evenly distributed (Title + Password only) */
    .password-table th:nth-child(2),
    .password-table td:nth-child(2),
    .password-table th:nth-child(4),
    .password-table td:nth-child(4) {
        width: 50%;
    }

    /* Mobile: Show username on tap */
    .title-username-wrapper.show-username .title-text {
        display: none;
    }

    .title-username-wrapper.show-username .username-text {
        display: block;
    }

    .password-wrapper {
        justify-content: flex-start;
        gap: 6px;
        flex-wrap: wrap;
    }

    .password-reveal {
        max-width: 100%;
        word-break: break-word;
        letter-spacing: 0.02em;
    }

    .copy-hint {
        font-size: 11px;
        margin-left: 0;
    }

    .password-actions {
        opacity: 1;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 8px;
    }

    .modal-content {
        width: 95%;
        margin: 16px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
    
    .code-input {
        width: 40px;
        height: 50px;
        font-size: 20px;
    }

}

@media (max-width: 480px) {
    .auth-container {
        margin: 16px;
    }
    
    .auth-form {
        padding: 24px 20px;
    }
    
    .password-input-group {
        flex-direction: column;
    }
    
    .copy-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .code-input {
        width: 35px;
        height: 45px;
        font-size: 18px;
    }
    
    .password-table {
        font-size: 12px;
    }
    
    .password-table th,
    .password-table td {
        padding: 10px 12px;
    }
    
    .password-actions {
        opacity: 1;
    }
}










