/* Native App Auth Pages CSS */

/* CSS Variables */
:root {
    --primary-color: #FF6B35;
    --secondary-color: #F7931E;
    --success-color: #00D4AA;
    --danger-color: #FF3B30;
    --warning-color: #FFCC02;
    
    --bg-primary: #0A0A0A;
    --bg-secondary: #1C1C1E;
    --card-bg: #2C2C2E;
    --input-bg: #3A3A3C;
    
    --text-primary: #FFFFFF;
    --text-secondary: #EBEBF5;
    --text-muted: #8E8E93;
    
    --border-color: #48484A;
    
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --gradient-success: linear-gradient(135deg, #00D4AA 0%, #00BFA5 100%);
    --gradient-danger: linear-gradient(135deg, #FF3B30 0%, #FF6B6B 100%);
    --gradient-warning: linear-gradient(135deg, #FFCC02 0%, #FFD700 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main Container */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: var(--bg-primary);
    position: relative;
}

/* Background Pattern */
.auth-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 107, 53, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(247, 147, 30, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

/* Auth Card */
.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}

/* Header Section */
.auth-header {
    background: var(--gradient-primary);
    padding: 30px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 10s infinite ease-in-out;
}

.auth-logo {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
}

.auth-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.auth-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

/* Form Section */
.auth-body {
    padding: 30px 20px;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

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

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-secondary);
}

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

/* Input with Icon */
.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
    transition: color 0.3s ease;
}

.input-group .form-control {
    padding-left: 44px;
}

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

/* Select Dropdown */
select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23B8BCC8'%3E%3Cpath d='M7 10l5 5 5-5H7z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
    appearance: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

/* Alerts */
.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

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

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Links */
.auth-links {
    text-align: center;
    margin-top: 24px;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.auth-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.link-separator {
    color: var(--text-muted);
    margin: 0 12px;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.form-footer-text {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 8px;
}

/* Success Screen */
.success-screen {
    padding: 40px 20px;
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: pulse 2s infinite;
}

.success-icon i {
    font-size: 40px;
    color: #fff;
}

.success-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Credentials Card */
.credentials-card {
    background: var(--input-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    text-align: left;
}

.credential-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.credential-row:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.credential-label {
    font-size: 14px;
    color: var(--text-muted);
}

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

/* Checkbox */
.form-checkbox {
    display: flex;
    align-items: start;
    gap: 10px;
    margin: 20px 0;
}

.checkbox-input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.checkbox-label a {
    color: var(--primary-color);
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

/* Info Box */
.info-box {
    background: rgba(255, 107, 53, 0.1);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: start;
    gap: 12px;
}

.info-box-icon {
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.info-box-text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Loading State */
.btn-loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading i {
    animation: spin 1s linear infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 212, 170, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(0, 212, 170, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 212, 170, 0); }
}

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

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

.fade-in-up {
    animation: fadeInUp 0.5s ease forwards;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-header {
        padding: 25px 15px;
    }
    
    .auth-body {
        padding: 25px 15px;
    }
    
    .auth-title {
        font-size: 20px;
    }
    
    .form-control {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}

/* Remove default link styles */
a {
    color: inherit;
    text-decoration: none;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: #fff;
    font-size: 20px;
}

.feature-text {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
} 