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

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0f0f0f;
    color: #e0e0e0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container, .dashboard-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-box, .dashboard-box {
    background: #1a1a1a;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 420px;
    border: 1px solid #333;
}

.login-box h1, .dashboard-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #fff;
    font-size: 28px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.dashboard-box p {
    color: #e0e0e0;
    margin-bottom: 5px;
}

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

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #333;
    border-radius: 6px;
    font-size: 14px;
    background: #262626;
    color: #e0e0e0;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 8px rgba(102, 126, 234, 0.2);
    background: #2a2a2a;
}

.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.signup-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

.signup-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #3d2a2a;
    color: #ff6b6b;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #554444;
}

.error-message p {
    margin: 5px 0;
}

/* Dashboard Documents */
.documents-section {
    background: #262626;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
    border: 1px solid #333;
}

.documents-section h3 {
    color: #e0e0e0;
    margin-bottom: 15px;
    font-size: 16px;
    border-bottom: 1px solid #667eea;
    padding-bottom: 10px;
}

.document-list {
    list-style: none;
}

.document-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin: 8px 0;
    background: #1a1a1a;
    border-radius: 6px;
    border-left: 3px solid #667eea;
    transition: all 0.3s;
}

.document-item:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.document-item strong {
    color: #e0e0e0;
}

.document-actions {
    display: flex;
    gap: 8px;
}

.document-actions a {
    padding: 6px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    transition: all 0.3s;
}

.document-actions a:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.logout-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
    transition: all 0.3s;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
}

.logout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* PDF Viewer */
.pdf-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    background: #0f0f0f;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.pdf-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
    gap: 15px;
}

.pdf-header h2 {
    margin: 0;
    font-size: 20px;
    flex: 1;
    min-width: 150px;
}

.pdf-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pdf-actions a, .pdf-actions button {
    padding: 8px 16px;
    background: white;
    color: #667eea;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
}

.pdf-actions a:hover, .pdf-actions button:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

.pdf-viewer {
    flex: 1;
    padding: 15px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pdf-viewer iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 4px;
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Responsive Design - Tablet */
@media (max-width: 768px) {
    .login-box, .dashboard-box {
        padding: 30px 20px;
        max-width: 100%;
    }

    .login-box h1, .dashboard-box h1 {
        font-size: 24px;
        margin-bottom: 25px;
    }

    .form-group label {
        font-size: 13px;
    }

    .form-group input {
        padding: 11px;
    }

    .login-btn {
        padding: 11px;
        font-size: 15px;
    }

    .pdf-header {
        padding: 12px 15px;
        flex-direction: column;
        align-items: stretch;
    }

    .pdf-header h2 {
        font-size: 18px;
        width: 100%;
    }

    .pdf-actions {
        width: 100%;
    }

    .pdf-actions a, .pdf-actions button {
        flex: 1;
        text-align: center;
        padding: 10px;
    }

    .document-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .document-actions {
        width: 100%;
        margin-top: 10px;
    }

    .document-actions a {
        flex: 1;
        text-align: center;
    }

    .logout-btn {
        padding: 12px 20px;
    }
}

/* Responsive Design - Mobile */
@media (max-width: 480px) {
    body {
        padding: 0;
        margin: 0;
    }

    .login-container, .dashboard-container {
        padding: 15px;
        height: 100%;
    }

    .login-box, .dashboard-box {
        padding: 25px 15px;
        border-radius: 8px;
        max-width: 100%;
        width: 100%;
    }

    .login-box h1, .dashboard-box h1 {
        font-size: 22px;
        margin-bottom: 20px;
    }

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

    .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }

    .form-group input {
        padding: 10px;
        font-size: 13px;
    }

    .login-btn {
        padding: 11px;
        font-size: 14px;
    }

    .documents-section {
        padding: 15px;
        margin: 15px 0;
    }

    .documents-section h3 {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .document-item {
        padding: 10px;
        margin: 6px 0;
    }

    .document-item strong {
        font-size: 14px;
    }

    .document-actions {
        width: 100%;
        margin-top: 10px;
        gap: 6px;
    }

    .document-actions a {
        padding: 8px 10px;
        font-size: 11px;
        flex: 1;
        text-align: center;
    }

    .logout-btn {
        padding: 11px 15px;
        font-size: 14px;
        width: 100%;
    }

    .pdf-container {
        height: 100vh;
    }

    .pdf-header {
        padding: 10px 12px;
        gap: 10px;
    }

    .pdf-header h2 {
        font-size: 16px;
    }

    .pdf-actions {
        gap: 6px;
    }

    .pdf-actions a, .pdf-actions button {
        padding: 8px 10px;
        font-size: 12px;
        flex: 1;
        text-align: center;
    }

    .pdf-viewer {
        padding: 10px;
    }
}