:root {
    --background: #ffffff;
    --foreground: #1a1a1a;
    --card: #ffffff;
    --card-foreground: #1a1a1a;
    --popover: #ffffff;
    --popover-foreground: #1a1a1a;
    --primary: #ffa500;
    --primary-foreground: #ffffff;
    --secondary: #f4f6f8;
    --secondary-foreground: #1a1a1a;
    --muted: #fff9e6;
    --muted-foreground: #767676;
    --accent: #008000;
    --accent-foreground: #ffffff;
    --destructive: #ff4d4f;
    --destructive-foreground: #ffffff;
    --border: #e5e7eb;
    --input: #e5e7eb;
    --ring: #ffa500;
    --radius: 0.25rem;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
}

.app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header */
.header {
    background-color: var(--accent);
    color: var(--accent-foreground);
    padding: 0.75rem 1rem;
}

.header-container {
    display: flex;
    align-items: center;
}

.logo-circle {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.logo-text {
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--primary-foreground);
}

.header-title {
    font-weight: bold;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.main-logo {
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: linear-gradient(to right, #ffb733, #ff9500);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.logo-inner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-svg {
    width: 5rem;
    height: 5rem;
    color: white;
}

.auth-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    margin-bottom: 2rem;
}

.time-display {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.875rem;
}

/* Login Form */
.login-form-container {
    width: 100%;
    max-width: 28rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-label {
    font-weight: 500;
    color: #006400;
}

.form-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--muted);
}

.form-help-text {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    list-style-position: inside;
    padding-left: 1.25rem;
}

.password-container {
    position: relative;
}

.password-input {
    padding-right: 2.5rem;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
}

.password-recovery {
    text-align: right;
}

.recovery-link {
    font-size: 0.875rem;
    color: #006400;
    text-decoration: none;
}

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

.form-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 2rem;
    border-radius: var(--radius);
    font-weight: 500;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #e69500;
}

.btn-secondary {
    background-color: #f5f5f5;
    color: #333;
    border-color: #ddd;
}

.btn-secondary:hover {
    background-color: #e9e9e9;
}

.btn-danger {
    background-color: var(--destructive);
    color: var(--destructive-foreground);
}

.btn-danger:hover {
    background-color: #ff3333;
}

.btn-outline {
    background-color: transparent;
    border-color: #ddd;
    color: #333;
}

.btn-outline:hover {
    background-color: #f5f5f5;
}

.btn-ghost {
    background-color: transparent;
    color: #333;
}

.btn-ghost:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.btn-icon {
    margin-right: 0.25rem;
}

/* Footer */
.footer {
    background-color: var(--primary);
    color: var(--primary-foreground);
    padding: 1rem;
    margin-top: auto;
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-link {
    color: var(--primary-foreground);
    text-decoration: none;
}

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

/* Dialog */
.dialog {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dialog.hidden {
    display: none;
}

.dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
}

.dialog-content {
    position: relative;
    background-color: white;
    border-radius: 0.5rem;
    width: 100%;
    max-width: 28rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    z-index: 10;
}

.dialog-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dialog-title {
    font-weight: 600;
}

.dialog-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
}

.dialog-body {
    padding: 1rem 1.5rem;
}

.dialog-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

/* Error container */
.error-container {
    background-color: #ffebeb;
    border-left: 4px solid var(--destructive);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    border-radius: 0.25rem;
}

.error-container.hidden {
    display: none;
}

.error-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.error-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Toast */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 100;
}

.toast {
    padding: 0.75rem 1rem;
    background-color: white;
    border-radius: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: flex-start;
    max-width: 20rem;
    animation: slideIn 0.3s ease-out;
}

.toast-success {
    border-left: 4px solid #10b981;
}

.toast-error {
    border-left: 4px solid var(--destructive);
}

.toast-icon {
    margin-right: 0.75rem;
    font-size: 1.25rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.875rem;
    color: #666;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Admin styles */
.admin-nav {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.5rem;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: bold;
    text-decoration: none;
    color: var(--foreground);
    display: flex;
    align-items: center;
}

.nav-logo-icon {
    margin-right: 0.5rem;
}

.admin-content {
    padding: 1rem;
    display: flex;
    justify-content: center;
}

.admin-card {
    width: 100%;
    max-width: 28rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    overflow: hidden;
}

.admin-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.admin-card-title {
    text-align: center;
    font-weight: 600;
}

.admin-card-body {
    padding: 1.5rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.admin-form-actions {
    margin-top: 1.5rem;
}

.admin-card-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 640px) {
    .header-title {
        font-size: 0.875rem;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dialog-footer {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dialog-footer .btn {
        width: 100%;
    }
}