/* Acme Corp Employee Portal - Corporate Theme */

:root {
    --acme-blue: #1a56db;
    --acme-blue-dark: #1e40af;
    --acme-blue-light: #dbeafe;
    --success-green: #059669;
    --warning-orange: #d97706;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--acme-blue) 0%, var(--acme-blue-dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

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

.card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 32px;
    box-shadow: var(--shadow-lg);
}

.hidden {
    display: none !important;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: var(--acme-blue);
    color: var(--white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
}

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

.subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* OAuth Buttons */
.login-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oauth-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: var(--white);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    transition: all 0.2s;
}

.oauth-btn:hover:not(:disabled) {
    background: var(--bg-light);
    border-color: #d1d5db;
}

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

.oauth-btn .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.oauth-btn.apple .icon { color: #000; }
.oauth-btn.facebook .icon { color: #1877f2; font-weight: 700; }
.oauth-btn.google .icon { color: #ea4335; font-weight: 700; }

/* SignedByMe Button - Special Styling */
.oauth-btn.signedby {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    color: var(--white);
}

.oauth-btn.signedby:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
}

.oauth-btn.signedby .icon {
    font-size: 20px;
}

.oauth-btn.signedby .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.reward-badge {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 8px 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider span {
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 13px;
}

.footer-text {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* QR View */
.back-btn {
    background: none;
    border: none;
    color: var(--acme-blue);
    cursor: pointer;
    font-size: 14px;
    margin-bottom: 16px;
    padding: 4px 0;
}

.back-btn:hover {
    text-decoration: underline;
}

#qr-view h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.qr-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

#qr-container {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

#qr-code {
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.reward-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
    color: #92400e;
}

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

.status-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--bg-light);
    border-top-color: var(--acme-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

#status-text {
    color: var(--text-secondary);
    font-size: 14px;
}

.expire-text {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* Success View */
.success-icon {
    width: 80px;
    height: 80px;
    background: var(--success-green);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 20px;
}

#success-view h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.success-did {
    text-align: center;
    color: var(--text-secondary);
    font-size: 12px;
    font-family: monospace;
    word-break: break-all;
    margin-bottom: 20px;
}

.payout-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #d1fae5;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #065f46;
}

.payout-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px;
    background: #fef3c7;
    border-radius: 8px;
    margin-bottom: 24px;
    color: #92400e;
    font-size: 14px;
}

.primary-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--acme-blue);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.primary-btn:hover {
    background: var(--acme-blue-dark);
}

/* Responsive */
@media (max-width: 480px) {
    .card {
        padding: 32px 24px;
    }
    
    .logo h1 {
        font-size: 24px;
    }
}
