/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
}

.container {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* Hero Section */
.hero {
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Cards */
.card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.card h2 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

/* Buttons */
.button-group {
    display: flex;
    gap: 15px;
    flex-direction: column;
}

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

.btn-secondary:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
}

/* Features Section */
.info-section {
    margin-top: 30px;
}

.info-section h3 {
    color: white;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    color: white;
}

.feature .icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 10px;
}

.feature p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Form Container */
.form-container {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.form-container h1 {
    color: #667eea;
    margin-bottom: 10px;
    text-align: center;
}

.form-container .subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
    font-weight: 600;
}

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

/* Forms */
.auth-form {
    margin-top: 20px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group .hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #999;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.form-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

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

/* Messages */
.message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
    font-size: 0.95rem;
}

.message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
    display: block;
}

/* Dashboard */
.dashboard {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    margin: 0 auto;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e1e8ed;
}

.dashboard-header h1 {
    color: #667eea;
    font-size: 2rem;
}

.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.welcome-card h2 {
    margin-bottom: 5px;
    color: white;
}

.user-email {
    opacity: 0.9;
    margin: 0;
}

.token-info {
    margin: 20px 0;
}

.token-info h4 {
    color: #667eea;
    margin-bottom: 10px;
}

.token-display {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #333;
    border: 1px solid #e1e8ed;
    max-height: 150px;
    overflow-y: auto;
}

.info-box {
    background: #d4edda;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #28a745;
    margin-top: 20px;
}

.info-box p {
    margin: 5px 0;
    color: #155724;
}

.steps-list {
    list-style: none;
    padding: 0;
}

.steps-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e1e8ed;
    font-size: 1.05rem;
}

.steps-list li:last-child {
    border-bottom: none;
}

/* API Test Section */
.api-test {
    margin-top: 20px;
}

.api-result {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    display: none;
}

.api-result.show {
    display: block;
}

.api-result pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .form-container {
        padding: 25px;
    }

    .dashboard {
        padding: 20px;
    }

    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}
