/* recovery.css - Account Recovery View Styles */

.app-view-recovery {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: calc(100vh - 64px);
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .app-view-recovery {
        flex-direction: row;
        padding: 2rem;
    }
}

/* Header Section */
.recovery-header {
    margin-bottom: 2rem;
}

.recovery-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--color-primary);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.recovery-header h1 {
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--color-white);
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .recovery-header h1 {
        font-size: 3rem;
    }
}

.recovery-description {
    font-size: 1.125rem;
    color: var(--color-text-dim);
    max-width: 42rem;
    line-height: 1.625;
}

/* Form Styles */
.form-group {
    margin-bottom: 2rem;
}

.form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    color: #d1d5db;
    margin-bottom: 0.5rem;
}

.input-with-icon {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4b5563;
}

.recovery-input {
    width: 100%;
    background: var(--color-surface-dark);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-xl);
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    color: var(--color-white);
    transition: all 0.2s;
}

.recovery-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px rgba(19, 236, 91, 0.2);
}

/* Secret Phrase Container */
.phrase-container {
    background: var(--color-surface-dark);
    border: 1px solid var(--color-surface-border);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

@media (min-width: 768px) {
    .phrase-container {
        padding: 2rem;
    }
}

.phrase-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 20px 20px;
}

.phrase-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 10;
}

.phrase-header h3 {
    color: var(--color-white);
    font-size: 1.125rem;
    font-weight: 700;
}

.phrase-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    position: relative;
    z-index: 10;
}

@media (min-width: 640px) {
    .phrase-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .phrase-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.phrase-word-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-radius: var(--radius-lg);
    background: var(--color-background-dark);
    border: 1px solid var(--color-surface-border);
    transition: border-color 0.2s;
}

.phrase-word-item:focus-within {
    border-color: rgba(19, 236, 91, 0.5);
}

.word-index {
    color: rgba(19, 236, 91, 0.4);
    font-family: var(--font-mono);
    font-size: 10px;
    width: 1rem;
    flex-shrink: 0;
}

.word-input {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--color-white);
    font-weight: 700;
    letter-spacing: 0.025em;
    width: 100%;
    font-size: 0.875rem;
}

.word-input:focus {
    outline: none;
}

/* Phrase Actions */
.phrase-actions {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-surface-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 10;
}

.phrase-actions span {
    font-size: 0.875rem;
    color: var(--color-text-dim);
}

.btn-phrase-action {
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    transition: color 0.2s;
}

.btn-phrase-action:hover {
    color: var(--color-white);
}

/* Sidebar Alerts */
.recovery-alert {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    padding: 1rem;
    border-radius: var(--radius-lg);
    display: flex;
    gap: 0.75rem;
}

.alert-icon {
    color: #ef4444;
    flex-shrink: 0;
}

.alert-content {
    font-size: 0.875rem;
    color: rgba(254, 226, 226, 0.8);
}

.alert-title {
    color: #fca5a5;
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

/* Utility buttons from register.css reused */
.btn-util-sm {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    background: rgba(16, 34, 22, 0.5);
    font-size: 0.75rem;
    font-weight: 500;
    color: #d1d5db;
    border: 1px solid var(--color-surface-border);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-util-sm:hover {
    background: var(--color-background-dark);
}

.btn-recover-glow {
    flex: 1;
    background: var(--color-primary);
    color: var(--color-background-dark);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.875rem 1.5rem;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(19, 236, 91, 0.2);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-recover-glow:hover {
    background: #0fd951;
    box-shadow: 0 0 30px rgba(19, 236, 91, 0.3);
}