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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #FFFFFF;
    min-height: 100vh;
    font-size: 14px;
    font-weight: 400;
    color: #1F2937;
}

.container {
    width: 100%;
    min-height: 100vh;
}

/* Authentication Section - Split Screen Layout */
.auth-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    overflow: hidden;
}

/* Left Side - Form */
.auth-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 80px;
    background: #FAF9F6;
}

.auth-card h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 48px;
    font-weight: 400;
    color: #111827;
    margin-bottom: 12px;
    text-align: center;
    line-height: 1.2;
}

.subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #1F2937;
    margin-bottom: 40px;
    text-align: center;
}

/* Hide tabs - using simplified flow */
.auth-tabs {
    display: none;
}

.tab-btn {
    display: none;
}

/* Right Side - Image */
.auth-image {
    background-image: url('desire.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 20px;
    position: relative;
    margin: 40px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 340px;
}

/* Google Sign In Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    background: #FFFFFF;
    color: #1F2937;
    border: 1px solid #CECDCA;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-google:hover {
    background: #F5F4ED;
    border-color: #B0AFA9;
}

/* Style Google's rendered button to match our design */
#google-signin-container {
    width: 100%;
}

#google-signin-container > div {
    width: 100% !important;
}

/* Override Google's button styling */
#google-signin-container iframe {
    width: 100% !important;
    height: 50px !important;
}

/* Style the Google button wrapper */
#google-signin-container [role="button"] {
    width: 100% !important;
    border: 1px solid #CECDCA !important;
    border-radius: 8px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

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

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #CECDCA;
}

.auth-divider span {
    padding: 0 16px;
    color: #6B7280;
    font-size: 13px;
    font-weight: 400;
}

/* Email Continue Button */
.btn-email {
    padding: 14px 24px;
    background: #111827;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-email:hover {
    background: #1F2937;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 400;
    color: #1F2937;
    font-size: 14px;
    display: none; /* Hide labels in minimal design */
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 16px;
    border: 1px solid #CECDCA;
    border-radius: 8px;
    font-size: 15px;
    color: #1F2937;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    transition: all 0.3s;
    background: #FFFFFF;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 1px #111827;
}

.form-group textarea {
    resize: vertical;
    font-family: inherit;
}

/* Placeholder styling */
.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select::placeholder {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #9CA3AF;
}

.btn-primary {
    padding: 15px 30px;
    background: #E8F2DA;
    color: #427525;
    border: 1px solid #C4D9B5;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: #d4e5c1;
    border-color: #b0c79f;
}

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

.btn-secondary {
    padding: 15px 30px;
    background: #E8F2DA;
    color: #427525;
    border: 1px solid #C4D9B5;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #d4e5c1;
    border-color: #b0c79f;
}

/* Application Section */
.app-section {
    min-height: 100vh;
    background: #f5f7fa;
}

.app-header {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px 40px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.header-content h1 {
    color: #667eea;
    font-size: 24px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-info span {
    font-weight: 500;
    color: #333;
}

/* Main Content */
.main-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 40px;
}

/* Sidebar */
.sidebar {
    background: white;
    border-radius: 12px;
    padding: 25px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.sidebar h3 {
    margin-bottom: 15px;
    color: #333;
}

.category-list {
    list-style: none;
    margin-bottom: 30px;
}

.category-list li {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    color: #666;
}

.category-list li:hover {
    background: #f0f0f0;
}

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

.stats {
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.stats h4 {
    margin-bottom: 15px;
    color: #333;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    color: #666;
}

.stat-item span:last-child {
    font-weight: 600;
    color: #667eea;
}

/* Content Area */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.new-requirement-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.new-requirement-card h2 {
    color: #333;
    margin-bottom: 10px;
}

.help-text {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

/* Requirements List */
.requirements-list {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* AI Conversation Card */
.ai-conversation-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.conversation-thread {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message {
    margin-bottom: 20px;
    padding: 15px 20px;
    border-radius: 12px;
    animation: slideIn 0.3s ease;
}

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

.message.ai {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-left: 0;
    margin-right: 50px;
}

.message.user {
    background: #e3f2fd;
    color: #333;
    margin-left: 50px;
    margin-right: 0;
}

.message-label {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 8px;
    opacity: 0.8;
}

.message-content {
    line-height: 1.6;
}

.message-content strong {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
}

.message-content ul {
    margin-left: 20px;
    margin-top: 10px;
}

.response-section {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.intent-preview {
    margin-top: 30px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #667eea;
}

.intent-preview h3 {
    color: #667eea;
    margin-bottom: 20px;
}

#intent-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    line-height: 1.8;
}

#intent-content h4 {
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e0e0e0;
}

#intent-content p {
    margin-bottom: 15px;
    color: #666;
}

#intent-content ul {
    margin-left: 25px;
    margin-bottom: 15px;
    color: #666;
}

#intent-content ul li {
    margin-bottom: 8px;
}

.requirements-list {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.requirements-list h2 {
    color: #333;
    margin-bottom: 20px;
}

#requirements-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.requirement-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.3s;
}

.requirement-card.intent-card {
    border: 2px solid #667eea;
    background: linear-gradient(to right, rgba(102, 126, 234, 0.05), rgba(255, 255, 255, 1));
}

.requirement-card:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.requirement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.requirement-title {
    font-weight: 600;
    color: #333;
    font-size: 18px;
    flex: 1;
}

.category-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.category-badge.feature {
    background: #e3f2fd;
    color: #1976d2;
}

.category-badge.bug {
    background: #ffebee;
    color: #c62828;
}

.category-badge.enhancement {
    background: #f3e5f5;
    color: #7b1fa2;
}

.category-badge.documentation {
    background: #e8f5e9;
    color: #2e7d32;
}

.category-badge.other {
    background: #fafafa;
    color: #616161;
}

.requirement-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.requirement-metadata {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #999;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.status-badge.open {
    background: #fff3e0;
    color: #ef6c00;
}

.status-badge.completed {
    background: #e8f5e9;
    color: #2e7d32;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #666;
}

/* Loading spinner */
.btn-loader::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

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

/* ============================================================================
   OTP VERIFICATION STYLES
   ============================================================================ */

.otp-header {
    text-align: center;
    margin-bottom: 30px;
}

.otp-header svg {
    display: inline-block;
    margin-bottom: 20px;
}

.otp-header h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 28px;
    font-weight: 400;
    color: #111827;
    margin-bottom: 12px;
}

.otp-header p {
    font-size: 14px;
    color: #1F2937;
    line-height: 1.5;
}

.otp-header strong {
    color: #427525;
    font-weight: 500;
}

.otp-input-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
}

.otp-digit {
    width: 48px;
    height: 56px;
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #111827;
    border: 2px solid #CECDCA;
    border-radius: 8px;
    background: #FFFFFF;
    transition: all 0.2s;
}

.otp-digit:focus {
    outline: none;
    border-color: #427525;
    box-shadow: 0 0 0 3px rgba(66, 117, 37, 0.1);
}

.otp-digit:disabled {
    background: #F9FAFB;
    cursor: not-allowed;
}

.otp-footer {
    text-align: center;
    margin-top: 20px;
}

.otp-footer p {
    font-size: 14px;
    color: #1F2937;
    margin-bottom: 8px;
}

.btn-text {
    background: none;
    border: none;
    color: #427525;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 8px 0;
    transition: all 0.2s;
    text-decoration: underline;
}

.btn-text:hover {
    color: #2f5219;
}

.btn-text:disabled {
    color: #9CA3AF;
    cursor: not-allowed;
    opacity: 0.5;
}

#back-to-login-btn {
    margin-top: 20px;
    color: #1F2937;
    text-decoration: none;
    display: block;
    text-align: center;
}

#back-to-login-btn:hover {
    color: #427525;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Auth Section - Stack vertically on mobile */
    .auth-section {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr;
    }

    .auth-card {
        padding: 40px 30px;
    }

    .auth-card h1 {
        font-size: 36px;
    }

    /* Hide image on mobile */
    .auth-image {
        display: none;
    }

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

    /* App Section */
    .main-content {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .app-header {
        padding: 15px 20px;
    }

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