.password-wrapper {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: var(--bg-canvas);
}

.password-visual {
    flex: 1;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 4rem;
    position: relative;
    overflow: hidden;
}

.password-visual::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
}

.password-visual::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50%;
    height: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
    border-radius: 50%;
    z-index: 0;
}

.brand-content {
    z-index: 1;
    text-align: center;
    max-width: 600px;
}

.brand-logo {
    width: 120px;
    height: auto;
    margin-bottom: 2rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.brand-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-tagline {
    font-size: 1.25rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
}

.password-form-container {
    flex: 0 0 550px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    background-color: var(--bg-surface);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.02);
    overflow-y: auto;
}

.password-header {
    margin-bottom: 3rem;
}

.password-header h1 {
    font-size: 2rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.password-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.message-box {
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.message-box.error {
    background-color: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.message-box.success,
.message-box.info {
    background-color: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.security-notice {
    background-color: var(--blue-50);
    color: var(--blue-800);
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--blue-100);
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    background-color: var(--bg-canvas);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.2s ease;
    color: var(--text-main);
}

.input-icon {
    position: absolute;
    left: 1rem;
    width: 20px;
    height: 20px;
    opacity: 0.5;
    pointer-events: none;
    fill: var(--text-muted);
}

[data-theme="dark"] .input-icon {
    fill: var(--text-main);
    opacity: 0.8;
}

.input-wrapper input:focus,
.code-digit:focus {
    outline: none;
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px var(--blue-100);
    background-color: var(--bg-surface);
}

.password-toggle {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0;
    display: flex;
    align-items: center;
}

.password-toggle:hover {
    opacity: 1;
}

[data-theme="dark"] .password-toggle img {
    filter: invert(1) brightness(2);
}

.code-container {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.code-digit {
    width: 45px;
    height: 55px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    background-color: var(--bg-canvas);
    color: var(--text-primary);
    transition: all 0.2s;
}

.form-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-800) 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

.secondary-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.link-mute {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.link-mute:hover {
    color: var(--blue-600);
}

@media (max-width: 900px) {
    .password-wrapper {
        flex-direction: column;
        overflow-y: auto;
    }

    .password-visual {
        flex: 0 0 200px;
        padding: 2rem;
    }

    .brand-title {
        font-size: 2rem;
    }

    .brand-tagline {
        display: none;
    }

    .password-form-container {
        flex: 1;
        width: 100%;
        padding: 2rem;
        box-shadow: none;
        border-radius: 20px 20px 0 0;
        margin-top: -20px;
        position: relative;
        z-index: 2;
    }
}