/* Authentication Styles */

/* Auth Icon */
.auth-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-primary);
}

/* Method Options */
.method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
}

.method-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: left;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.method-card:hover:not(:disabled) {
    border-color: var(--color-primary);
    background: var(--color-surface-light);
}

.method-card:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.method-icon {
    width: 56px;
    height: 56px;
    background: var(--color-surface-light);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
}

.method-text {
    flex: 1;
}

.method-text h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.method-text p {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.method-card > svg:last-child {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    margin-top: 24px;
}

.auth-footer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Form Sections */
.form-section {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
    margin-bottom: 8px;
}

.form-label .required {
    color: var(--color-error);
    font-weight: 400;
}

/* Text Input */
.text-input {
    width: 100%;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 1rem;
    color: var(--color-text);
}

.text-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.text-input::placeholder {
    color: var(--color-text-muted);
}

/* Key Input (for nsec) */
.key-input {
    width: 100%;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: 0.9rem;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    color: var(--color-text);
    resize: vertical;
    min-height: 70px;
}

.key-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

/* Password Input Group */
.password-input-group {
    display: flex;
    align-items: center;
    background: var(--color-surface);
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
}

.password-input-group:focus-within {
    border-color: var(--color-primary);
}

.password-input-group .text-input {
    border: none;
    border-radius: 0;
}

.password-input-group .text-input:focus {
    outline: none;
}

.password-input-group .btn-icon {
    background: transparent;
    border: none;
    padding: 12px;
    color: var(--color-text-muted);
    cursor: pointer;
}

.password-input-group .btn-icon:hover {
    color: var(--color-text);
}

/* Password Strength */
.password-strength {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    min-height: 20px;
}

.strength-bar {
    flex: 1;
    height: 4px;
    background: var(--color-border);
    border-radius: 2px;
    overflow: hidden;
}

.strength-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.3s ease;
}

.strength-weak .strength-fill {
    background: var(--color-error);
}

.strength-fair .strength-fill {
    background: var(--color-warning);
}

.strength-good .strength-fill {
    background: var(--color-accent);
}

.strength-strong .strength-fill {
    background: var(--color-success);
}

.strength-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    min-width: 50px;
}

/* Input Hints */
.input-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 8px;
}

.input-hint.success {
    color: var(--color-success);
}

.input-hint.error {
    color: var(--color-error);
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    flex: 1;
}

/* Identity Card */
.identity-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 16px;
    margin: 24px 0;
}

.identity-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.identity-label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.identity-value {
    flex: 1;
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace;
    font-size: 0.9rem;
    color: var(--color-text);
    word-break: break-all;
}

.btn-icon-sm {
    background: transparent;
    border: none;
    padding: 8px;
    color: var(--color-text-muted);
    cursor: pointer;
    border-radius: var(--radius);
}

.btn-icon-sm:hover {
    background: var(--color-surface-light);
    color: var(--color-text);
}

/* Warning Box */
.warning-box {
    display: flex;
    gap: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: var(--radius);
    padding: 16px;
    margin: 24px 0;
    color: var(--color-warning);
}

.warning-box svg {
    flex-shrink: 0;
}

.warning-box p {
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Warning Icon */
.warning-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-warning);
}

/* Warning Text */
.warning-text {
    color: var(--color-text-muted);
    text-align: center;
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Danger Zone */
.danger-zone {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.btn-text-danger {
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 8px;
}

.btn-text-danger:hover {
    color: var(--color-error);
    text-decoration: underline;
}

/* Danger Button */
.btn-danger {
    background: var(--color-error);
    color: white;
    border: none;
}

.btn-danger:hover {
    background: #dc2626;
}

/* Login Form */
.login-form {
    width: 100%;
    max-width: 360px;
    margin: 32px auto 0;
}

/* Center Content */
.state-content.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
}

/* Success/Error Icons */
.success-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-success);
}

.error-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--color-error);
}

.error-message {
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 24px;
}

/* Processing */
.processing-text {
    color: var(--color-text-muted);
    margin-top: 16px;
}
