/* CFNI Brand Colors - Single Theme */
:root {
    --bg-primary: #F2F2F2;
    --bg-secondary: #EDE5DD;
    --bg-tertiary: #ffffff;
    --text-primary: #0E0E0E;
    --text-secondary: #2D2D2D;
    --text-muted: #7A858B;
    --border-color: #CAB79C;
    --shadow-color: rgba(0, 0, 0, 0.1);
    --accent-color: #0F365E;
    --error-bg: #fee;
    --error-border: #fcc;
    --error-text: #A9472F;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #0F365E 0%, #7A858B 100%);
    min-height: 100vh;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Loading Spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    text-align: center;
    color: #FFFFFF;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #FFFFFF;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Authentication Section */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F365E 0%, #7A858B 100%);
}

.auth-card {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.auth-logo {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
}

.auth-card h1 {
    color: #0F365E;
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.auth-card p {
    color: #666;
    margin-bottom: 30px;
}

.error-message {
    background-color: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
}

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

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Main App Header */
.app-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 54, 94, 0.2);
    padding: 15px 0;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 40px;
    height: 40px;
}

.logo-section h1 {
    color: #0E0E0E;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

.user-name {
    font-weight: 500;
    color: #0E0E0E;
}

/* Main Content */
.main-content {
    padding: 40px 0;
    animation: fadeInUp 0.8s ease-out;
}

/* Form Section */
.form-section {
    max-width: 800px;
    margin: 0 auto;
}

.form-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-card h2 {
    color: #0E0E0E;
    margin-bottom: 30px;
    font-size: 24px;
    font-weight: bold;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    margin-bottom: 8px;
    color: #0E0E0E;
}

.form-group input {
    padding: 12px;
    border: 1px solid #CAB79C;
    border-radius: 6px;
    font-size: 16px;
    background-color: rgba(255, 255, 255, 0.9);
    color: #0E0E0E;
    transition: border-color 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #0F365E;
    box-shadow: 0 0 0 3px rgba(15, 54, 94, 0.2);
}

.form-actions {
    text-align: center;
}

/* Preview Section */
.preview-section {
    max-width: 800px;
    margin: 0 auto;
}

.preview-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.preview-header h2 {
    color: #0E0E0E;
    font-size: 24px;
}

.signature-preview {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #CAB79C;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 30px;
    overflow-x: auto;
}

.preview-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}



/* CFNI Logo */
.header-logo {
    filter: none;
    width: 40px;
    height: 40px;
}

/* Welcome Screen */
.welcome-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0F365E 0%, #7A858B 100%);
    text-align: center;
}

.welcome-screen .container {
    animation: fadeInUp 0.6s ease-out;
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.welcome-title {
    color: white;
    font-size: 48px;
    font-weight: bold;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}



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

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

/* Help Page Styles */
.help-section {
    max-width: 800px;
    margin: 0 auto;
}

.help-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.help-card h2 {
    color: #0E0E0E;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.help-content {
    color: #0E0E0E;
    line-height: 1.6;
}

.help-content .intro {
    font-size: 18px;
    margin-bottom: 30px;
    color: #2D2D2D;
}

.help-section-block {
    margin-bottom: 30px;
}

.help-section-block h3 {
    color: #0F365E;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin-bottom: 15px;
}

.help-section-block p {
    margin-bottom: 15px;
    color: #2D2D2D;
}

.help-section-block ul,
.help-section-block ol {
    margin-bottom: 15px;
    padding-left: 20px;
}

.help-section-block li {
    margin-bottom: 8px;
    color: #2D2D2D;
}

.help-section-block ul ul {
    margin-top: 10px;
    margin-bottom: 10px;
}

.help-section-block .note {
    background: rgba(15, 54, 94, 0.1);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #0F365E;
    margin-top: 15px;
}

.help-section-block .support {
    background: rgba(169, 71, 47, 0.1);
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #A9472F;
    margin-top: 20px;
    font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .auth-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .form-card,
    .preview-card {
        padding: 30px 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .preview-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 20px 15px;
    }
    
    .form-card,
    .preview-card {
        padding: 20px 15px;
    }
} 