/* Kelly Installer & Auth - Apple-Inspired */

.installer-body {
    min-height: 100vh;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    position: relative;
    overflow: hidden;
}

.installer-body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(0, 113, 227, 0.15) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(0, 113, 227, 0.08) 0%, transparent 40%);
    animation: ambientShift 20s ease-in-out infinite alternate;
}

@keyframes ambientShift {
    from { transform: translate(0, 0) rotate(0deg); }
    to { transform: translate(-3%, -3%) rotate(2deg); }
}

.installer-container {
    width: 100%;
    max-width: 560px;
    position: relative;
    z-index: 1;
}

.installer-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.installer-logo {
    font-family: var(--font-display);
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
    color: #ffffff;
}

.installer-subtitle {
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.374px;
    color: rgba(255, 255, 255, 0.56);
    margin-top: var(--space-sm);
}

/* Steps Progress */
.installer-steps {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.step-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-text);
    font-size: 12px;
    font-weight: 600;
    background: transparent;
    color: rgba(255, 255, 255, 0.36);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    transition: all var(--transition-base);
}

.step.active .step-number {
    background: var(--apple-blue);
    color: #ffffff;
    border-color: var(--apple-blue);
}

.step.completed .step-number {
    background: var(--success);
    color: #ffffff;
    border-color: var(--success);
}

.step-label {
    font-family: var(--font-text);
    font-size: 10px;
    letter-spacing: -0.08px;
    color: rgba(255, 255, 255, 0.36);
    font-weight: 400;
}

.step.active .step-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
}

.step.completed .step-label {
    color: rgba(255, 255, 255, 0.56);
}

/* Installer Content Card */
.installer-content {
    background: #1d1d1f;
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.installer-content h2 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: 0.196px;
    margin-bottom: var(--space-sm);
    color: #ffffff;
}

.installer-content > p {
    font-family: var(--font-text);
    font-size: 14px;
    letter-spacing: -0.224px;
    color: rgba(255, 255, 255, 0.56);
    margin-bottom: var(--space-xl);
    line-height: 1.43;
}

.installer-content .form-group label {
    color: rgba(255, 255, 255, 0.72);
}

.installer-content .form-group small {
    color: rgba(255, 255, 255, 0.36);
}

.installer-content .glass-input {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.installer-content .glass-input:focus {
    border-color: var(--apple-blue);
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.25);
}

.installer-content .glass-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.installer-content .glass-button {
    width: 100%;
    margin-top: var(--space-lg);
    padding: 12px 24px;
    font-size: 17px;
    font-weight: 400;
    border-radius: var(--radius-md);
}

.installer-content .glass-button.primary {
    background: var(--apple-blue);
    color: #ffffff;
}

.installer-content .glass-button.primary:hover {
    background: var(--apple-blue-hover);
}

/* Requirements List */
.requirements-list {
    margin: var(--space-lg) 0;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-family: var(--font-text);
    font-size: 14px;
    letter-spacing: -0.224px;
}

.requirement-item:last-child {
    border-bottom: none;
}

.req-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    flex-shrink: 0;
}

.requirement-item.pass .req-icon {
    background: rgba(52, 199, 89, 0.15);
    color: var(--success);
}

.requirement-item.fail .req-icon {
    background: rgba(255, 59, 48, 0.15);
    color: var(--danger);
}

.req-label {
    flex: 1;
    color: rgba(255, 255, 255, 0.72);
}

.req-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.36);
    font-family: var(--font-mono);
    letter-spacing: -0.12px;
}

/* Divider */
.divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: var(--space-xl) 0;
}

.installer-content h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.374px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-lg);
}

/* Success Icon */
.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(52, 199, 89, 0.12);
    color: var(--success);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: var(--space-xl) auto;
}

/* Cron Info */
.cron-info {
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.cron-info h3 {
    margin-bottom: var(--space-sm);
}

.cron-info p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.48);
    margin-bottom: var(--space-md);
    letter-spacing: -0.224px;
}

.cron-info pre {
    background: rgba(0, 0, 0, 0.4);
    padding: var(--space-md);
    border-radius: var(--radius-sm);
    overflow-x: auto;
    font-size: 12px;
    font-family: var(--font-mono);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.72);
    letter-spacing: -0.12px;
}

/* Input with button */
.input-with-button {
    display: flex;
    gap: var(--space-sm);
}

.input-with-button .glass-input {
    flex: 1;
}

/* Alert overrides for dark installer context */
.installer-container .alert {
    border: none;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
}

.installer-container .alert-error {
    background: rgba(255, 59, 48, 0.12);
    color: #FF6961;
}

.installer-container .alert-success {
    background: rgba(52, 199, 89, 0.12);
    color: #4ADE80;
}
