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

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f1e8;
    color: #333;
}

/* Header */
.header {
    background-color: #fff;
    padding: 15px 30px;
    border-bottom: 3px solid #ff9900;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-logo img {
    height: 50px;
    width: auto;
}

/* Orange Bar */
.orange-bar {
    background-color: #ff9900;
    height: 8px;
    width: 100%;
}

/* Main Content */
.main-content {
    padding: 60px 30px;
    max-width: 1000px;
    margin: 0 auto;
    min-height: calc(100vh - 200px);
}

/* Page Title Section */
.page-title {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-title img {
    height: 60px;
    width: auto;
}

.page-title h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

/* Page Subtitle */
.page-subtitle {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Documents Grid */
.documents-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}

/* Document Card */
.document-card {
    background-color: #fff;
    border: 1px solid #e0dcd3;
    border-radius: 4px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.document-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Document Icon */
.document-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f9f5f0;
    border-radius: 4px;
}

.document-icon img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

/* Document Info */
.document-info {
    flex: 1;
    min-width: 0;
}

.document-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.document-meta {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}

/* Document Actions */
.document-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.download-btn,
.view-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.download-btn {
    background-color: #4caf50;
    color: #fff;
}

.download-btn:hover {
    background-color: #45a049;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.view-btn {
    background-color: #f5f1e8;
    color: #333;
    border: 1px solid #ddd;
}

.view-btn:hover {
    background-color: #ebe5d9;
    border-color: #ccc;
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

/* Login Card */
.login-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    position: relative;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: #333;
}

/* Company Logo */
.company-logo {
    text-align: center;
    margin-bottom: 30px;
}

.company-logo img {
    height: 50px;
    width: auto;
}

/* Form Styles */
form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.form-input {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: #ff9900;
    box-shadow: 0 0 0 3px rgba(255, 153, 0, 0.1);
}

/* Error Message */
.error-message {
    color: #d32f2f;
    font-size: 13px;
    padding: 10px;
    background-color: #ffebee;
    border-radius: 4px;
    display: none;
}

.error-message.show {
    display: block;
}

/* Button Container */
.button-container {
    margin-top: 10px;
}

.continue-btn {
    width: 100%;
    padding: 12px;
    background-color: #ff9900;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.continue-btn:hover {
    background-color: #e68a00;
    box-shadow: 0 2px 8px rgba(255, 153, 0, 0.3);
}

.continue-btn:active {
    transform: scale(0.98);
}

/* Support Text */
.support-text {
    font-size: 12px;
    color: #999;
    text-align: center;
    line-height: 1.5;
}

.support-text a {
    color: #ff9900;
    text-decoration: none;
}

.support-text a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: #fff;
    border-top: 1px solid #e0dcd3;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo img {
    height: 30px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    font-size: 13px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: #ff9900;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-content {
        padding: 40px 20px;
    }

    .page-title h1 {
        font-size: 24px;
    }

    .document-card {
        flex-direction: column;
        text-align: center;
    }

    .document-actions {
        width: 100%;
        justify-content: center;
    }

    .download-btn,
    .view-btn {
        flex: 1;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .login-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 10px 15px;
    }

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

    .main-content {
        padding: 30px 15px;
    }

    .page-title h1 {
        font-size: 20px;
    }

    .document-actions {
        flex-direction: column;
    }

    .download-btn,
    .view-btn {
        width: 100%;
    }
}
