/* Login Page Specific Styles */

.login-page {
    background: var(--bg-secondary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 480px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    text-align: center;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* Ensure generate button is visible */
#generate-btn {
    display: block !important;
    visibility: visible !important;
    opacity: 1;
    margin-top: 1.5rem;
    width: 100%;
}

#generate-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#generate-btn:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.login-card .logo {
    margin-bottom: 1.5rem;
}

.login-card .logo-img {
    height: 60px;
    width: auto;
}

.login-card h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.login-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Error message styling */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: var(--error);
    font-size: 0.9rem;
    margin-top: 1rem;
}

/* Education content styling */
.education-content {
    text-align: left;
    margin-bottom: 1.5rem;
}

.education-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.education-point {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.education-point .icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.education-point .text {
    flex: 1;
}

.education-point .text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
    color: var(--text-primary);
}

.education-point .text p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.3;
}

/* Large checkbox styling */
.understand-checkbox {
    margin: 1rem 0;
    padding: 0.75rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 8px;
    flex-shrink: 0;
}

.checkbox-label-large {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    text-align: left;
}

.checkbox-label-large input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label-large .label-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    line-height: 1.4;
}

/* Key display priority styling */
.key-display.priority {
    background: rgba(20, 184, 166, 0.1);
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.key-display.priority label {
    color: var(--primary);
    font-weight: 600;
}

.key-display .hint {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0.5rem 0 0 0;
}

.backup-warning h3 {
    color: var(--success);
    margin-bottom: 0.5rem;
}

.backup-warning .urgent {
    color: var(--error);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* Step indicator styling */
.step-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.step-number {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-header h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

/* Save instructions */
.save-instructions {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    text-align: left;
}

.save-instructions h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.save-instructions ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.save-instructions li {
    margin-bottom: 0.25rem;
}

/* Pending status */
.pending-status {
    text-align: center;
    padding: 1.5rem;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.status-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.pending-status h4 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.pending-status p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

/* Key summary for step 4 */
.key-summary {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.key-summary label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.key-summary input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: monospace;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    background: var(--bg-card);
}

/* Next steps */
.next-steps {
    text-align: left;
    margin-bottom: 1.5rem;
}

.next-steps h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.next-steps ul {
    margin: 0;
    padding-left: 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.next-steps li {
    margin-bottom: 0.25rem;
}

/* Warning hint */
.hint.warning {
    color: #d97706;
    font-weight: 500;
}

.hint.danger {
    color: #dc2626;
    font-weight: 600;
    background: rgba(220, 38, 38, 0.1);
    padding: 0.5rem;
    border-radius: 4px;
    margin-top: 0.5rem;
}

/* Generate link styling */
.generate-link {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.generate-link p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.generate-link a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.generate-link a:hover {
    text-decoration: underline;
}

/* Step indicator */
.step-indicator {
    margin-bottom: 1rem;
}

.step-indicator .step-number {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Back link */
.back-link {
    margin-top: 1.5rem;
}

.back-link a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link a:hover {
    color: var(--primary);
}
@media (max-width: 640px) {
    .login-page {
        padding: 1rem;
    }
    
    .login-card {
        padding: 1.5rem;
    }
    
    .login-card h1 {
        font-size: 1.5rem;
    }
    
    .education-point {
        padding: 0.5rem;
    }
    
    .education-point .icon {
        font-size: 1rem;
    }
}
