/* e661e.io Landing Page Styles */
/* Dark theme: #0d1117 background, #00ff88 accent */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #0d1117;
    color: #e6edf3;
    min-height: 100vh;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    width: 120px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 12px;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff88;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.tagline {
    font-size: 1rem;
    color: #8b949e;
    font-weight: 400;
}

/* Main Content */
main {
    flex: 1;
}

.intro {
    margin-bottom: 2rem;
}

.intro p {
    color: #8b949e;
    font-size: 0.95rem;
    text-align: center;
}

/* Auth Section */
.auth-section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.auth-section h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #e6edf3;
}

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-oauth {
    background: #21262d;
    border: 1px solid #30363d;
    color: #e6edf3;
}

.btn-oauth:hover {
    background: #30363d;
    border-color: #484f58;
}

.btn-google:hover {
    border-color: #4285F4;
}

.btn-github:hover {
    border-color: #8b949e;
}

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

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

.divider span {
    padding: 0 1rem;
    color: #8b949e;
    font-size: 0.875rem;
}

/* Email Buttons */
.email-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-primary {
    background: #00ff88;
    color: #0d1117;
    font-weight: 600;
}

.btn-primary:hover {
    background: #00cc6a;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 1px solid #00ff88;
    color: #00ff88;
}

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

/* Tech Stack */
.tech-stack {
    text-align: center;
    margin-bottom: 2rem;
}

.tech-stack h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: #8b949e;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.badge {
    background: #21262d;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Footer */
footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #21262d;
}

footer p {
    color: #8b949e;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

footer a {
    color: #00ff88;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.copyright {
    font-size: 0.75rem;
    color: #484f58;
}

/* Responsive */
@media (max-width: 480px) {
    .container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .logo {
        width: 100px;
    }
    
    .auth-section {
        padding: 1.5rem;
    }
}

/* Focus states for accessibility */
.btn:focus {
    outline: 2px solid #00ff88;
    outline-offset: 2px;
}

/* Animation for primary button */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(0, 255, 136, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
    }
}

.btn-primary {
    animation: glow 3s ease-in-out infinite;
}

.btn-primary:hover {
    animation: none;
}

/* Form Styles */
.form-section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e6edf3;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #e6edf3;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #00ff88;
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #484f58;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-full {
    width: 100%;
}

.btn-danger {
    background: #f85149;
    color: #fff;
    font-weight: 600;
}

.btn-danger:hover {
    background: #da3633;
}

/* Success/Error Cards */
.success-card,
.error-card {
    text-align: center;
    padding: 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: #00ff88;
    margin-bottom: 1rem;
}

.success-card h2 {
    color: #00ff88;
    margin-bottom: 1rem;
}

.error-card h2 {
    color: #f85149;
    margin-bottom: 1rem;
}

.success-card p,
.error-card p {
    color: #8b949e;
    margin-bottom: 1.5rem;
}

/* Request Card */
.request-card {
    padding: 1rem 0;
}

.request-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: #e6edf3;
}

.request-info {
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 8px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.request-info .field {
    margin-bottom: 1rem;
}

.request-info .field:last-child {
    margin-bottom: 0;
}

.request-info .label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: #8b949e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.request-info .value {
    color: #e6edf3;
}

/* Info Section */
.info-section {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
}

.info-section h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #e6edf3;
    margin-bottom: 1rem;
}

.steps-list {
    list-style: none;
    counter-reset: steps;
}

.steps-list li {
    counter-increment: steps;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #8b949e;
    font-size: 0.9rem;
}

.steps-list li::before {
    content: counter(steps);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #00ff88;
    color: #0d1117;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Loading State */
#loading {
    text-align: center;
    padding: 3rem;
    color: #8b949e;
}

/* Button disabled state */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
