/* =============================================
   DEVTOOLS - Authentication Styles
   VS Code Blue Instagram iOS Style Design
   Responsive untuk semua ukuran layar
   ============================================= */

/* ============= LAYOUT & CONTAINER ============= */

.auth-body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.auth-container {
    width: 100%;
    max-width: 400px;
    background-color: var(--bg-primary);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    padding: 32px 24px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries untuk responsivitas */
@media (max-width: 480px) {
    .auth-container {
        padding: 24px 16px;
        border-radius: 12px;
    }
}

@media (min-width: 768px) {
    .auth-container {
        padding: 40px 32px;
    }
}

/* ============= LOGO & HEADER ============= */

.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px;
}

.auth-logo h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.auth-logo p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

/* ============= ALERTS ============= */

.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert-icon {
    flex-shrink: 0;
    font-size: 16px;
}

.alert-content {
    flex: 1;
}

.alert-error {
    background-color: rgba(255, 59, 48, 0.1);
    color: var(--error-color);
    border-left: 4px solid var(--error-color);
}

.alert-success {
    background-color: rgba(52, 199, 89, 0.1);
    color: var(--success-color);
    border-left: 4px solid var(--success-color);
}

.alert-warning {
    background-color: rgba(255, 149, 0, 0.1);
    color: var(--warning-color);
    border-left: 4px solid var(--warning-color);
}

.alert-info {
    background-color: rgba(0, 180, 216, 0.1);
    color: var(--info-color);
    border-left: 4px solid var(--info-color);
}

/* ============= INFO BOX ============= */

.info-box {
    background-color: var(--bg-secondary);
    border-left: 4px solid var(--primary-color);
    padding: 16px;
    margin-bottom: 20px;
    border-radius: 8px;
}

.info-box h3 {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-box ul {
    margin-left: 24px;
    font-size: 13px;
    color: var(--text-secondary);
}

.info-box li {
    margin-bottom: 6px;
}

/* ============= FORM ELEMENTS ============= */

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label .icon {
    font-size: 16px;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 122, 204, 0.1);
    background-color: var(--bg-primary);
}

.form-group input:disabled,
.form-group textarea:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.error-text {
    color: var(--error-color);
    font-size: 12px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.info-text {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ============= BUTTONS ============= */

.btn {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 122, 204, 0.3);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

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

.btn-icon {
    font-size: 18px;
}

.btn-text {
    flex: 1;
}

/* Loading state */
.btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ============= STEPS INDICATOR ============= */

.steps-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 32px;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--border-color);
    z-index: 0;
}

.steps-container.step-2::before {
    background: linear-gradient(to right, var(--primary-color) 0%, var(--primary-color) 50%, var(--border-color) 50%, var(--border-color) 100%);
}

.steps-container.step-3::before {
    background: var(--primary-color);
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.step.active .step-circle {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(0, 122, 204, 0.3);
}

.step.completed .step-circle {
    background: var(--success-color);
    color: white;
}

.step-label {
    font-size: 12px;
    color: var(--text-tertiary);
    font-weight: 500;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============= FOOTER & LINKS ============= */

.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.auth-footer-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

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

/* ============= VERIFIED EMAIL ============= */

.verified-email {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border-left: 4px solid var(--success-color);
}

.verified-email-icon {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--success-color);
    margin-top: 2px;
}

.verified-email-content {
    flex: 1;
}

.verified-email-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.verified-email-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ============= PASSWORD STRENGTH ============= */

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-weak {
    background: var(--error-color);
    width: 33%;
}

.strength-medium {
    background: var(--warning-color);
    width: 66%;
}

.strength-strong {
    background: var(--success-color);
    width: 100%;
}

/* ============= TIMER ============= */

.timer-section {
    text-align: center;
    margin-bottom: 20px;
}

.timer-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.timer-countdown {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', Roboto Mono, Oxygen Mono, Ubuntu Monospace, source-code-pro, monospace;
    letter-spacing: 2px;
}

.timer-countdown.warning {
    color: var(--warning-color);
}

.timer-countdown.expired {
    color: var(--error-color);
}

/* ============= OTP INPUT ============= */

.otp-input {
    padding: 16px !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    text-align: center !important;
    letter-spacing: 12px !important;
    font-family: 'SF Mono', Monaco, Roboto Mono, monospace !important;
}

/* ============= RESEND SECTION ============= */

.resend-section {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.resend-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.resend-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
    text-decoration: underline;
    transition: all 0.2s ease;
    padding: 0;
}

.resend-btn:hover:not(:disabled) {
    opacity: 0.8;
}

.resend-btn:disabled {
    color: var(--text-tertiary);
    cursor: not-allowed;
    text-decoration: none;
}

.resend-message {
    margin-top: 10px;
    font-size: 13px;
    min-height: 20px;
}

/* ============= RESPONSIVE ADJUSTMENTS ============= */

@media (max-width: 768px) {
    .auth-logo h1 {
        font-size: 24px;
    }

    .auth-container {
        max-width: 100%;
    }
}

@media (min-width: 1024px) {
    .auth-body {
        padding: 20px;
    }
}