:root {
    --guinda: #6B1A2B;
    --guinda-dark: #4A1020;
    --guinda-light: #8B2438;
    --dark-accent: #21080d;
    --dark-accent-light: #513737;
    --cream: #FDF8F0;
    --white: #FFFFFF;
    --gray: #806b6b;
    --gray-light: #F3F4F6;
    --text: #371f1f;
    --border-color: #E5E7EB;
    --body-bg: var(--cream);
    --card-bg: var(--white);
    --text-color: var(--text);
    --nav-bg: var(--guinda-light);
    --footer-bg: var(--white);
}

[data-theme="dark"] {
    --body-bg: #0e0e0e;
    --card-bg: #3a1d1d;
    --text-color: #f8fafc;
    --footer-bg: #3b1e1e;
    --border-color: #553333;
    --gray-light: #553333;
}

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

body {
    font-family: 'Nunito', sans-serif;
    background: var(--body-bg);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

nav {
    background: var(--guinda-light) !important;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    box-shadow: 0 2px 12px rgba(74, 16, 32, 0.3);
    position: relative;
    z-index: 10;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

    .nav-brand span {
        font-family: 'Russo One', sans-serif;
        font-size: 28px;
        font-weight: 800;
        color: var(--white);
        letter-spacing: 1px;
        text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
    }

        .nav-brand span em {
            color: var(--dark-accent);
        }

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    list-style: none;
}

    .nav-links a {
        color: rgba(255, 255, 255, 0.75);
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 0.5px;
        transition: color 0.2s;
    }

        .nav-links a:hover {
            color: var(--white);
            background: rgba(255, 255, 255, 0.1);
            border-radius: 4px;
        }

.nav-btn {
    background: var(--dark-accent) !important;
    color: var(--white) !important;
    padding: 6px 18px;
    border-radius: 20px;
    font-weight: 800 !important;
    transition: background 0.2s !important;
}

    .nav-btn:hover {
        background: var(--dark-accent-light) !important;
    }

main {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 60px);
}

.left-panel {
    background: var(--guinda);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

    .left-panel::before {
        content: '';
        position: absolute;
        top: -80px;
        right: -80px;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 50%;
    }

    .left-panel::after {
        content: '';
        position: absolute;
        bottom: -60px;
        left: -60px;
        width: 250px;
        height: 250px;
        background: rgba(255, 255, 255, 0.08);
        border-radius: 50%;
    }

.brand-section {
    text-align: center;
    position: relative;
    z-index: 1;
}

.brand-logo {
    width: 240px;
    height: 240px;
    min-width: 240px;
    min-height: 240px;
    margin: 0 auto 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

    .brand-logo .burro-placeholder {
        font-size: 52px;
    }

.brand-title {
    font-family: 'Russo One', sans-serif;
    font-size: 82px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 1px;
    line-height: 1.1;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.15);
}

    .brand-title em {
        color: var(--dark-accent) !important;
        font-style: normal;
    }

[data-theme="dark"] .brand-title {
    color: var(--guinda-light);
}

    [data-theme="dark"] .brand-title em {
        color: var(--white) !important;
    }

.brand-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2.5rem;
    text-align: center;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 12px 20px;
    transition: all 0.2s;
}

    .feature-item:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }

.feature-icon {
    width: 32px;
    height: 32px;
    background: var(--gold);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.feature-text {
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.right-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--white);
}

.auth-container {
    width: 100%;
    max-width: 420px;
}

.tabs {
    display: flex;
    background: var(--card-bg);
    border-radius: 14px 14px 0 0;
    border: 1px solid var(--border-color);
    border-bottom: none;
    overflow: hidden;
}

.tab-btn {
    flex: 1;
    padding: 14px;
    background: none;
    border: none;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

    .tab-btn.active {
        color: var(--guinda);
        background: var(--body-bg);
    }

        .tab-btn.active::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--guinda);
            border-radius: 3px 3px 0 0;
        }

.form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 0 0 18px 18px;
    padding: 2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.form-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 4px;
}

.form-desc {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 1.5rem;
}

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

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--guinda);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.form-input,
.form-select {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--text-color);
    background: var(--card-bg);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

    .form-input:focus,
    .form-select:focus {
        border-color: var(--guinda);
        box-shadow: 0 0 0 3px rgba(107, 26, 43, 0.08);
    }

    .form-input::placeholder {
        color: #C4C9D4;
    }

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236B1A2B' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
    cursor: pointer;
}

.input-icon-wrap {
    position: relative;
}

    .input-icon-wrap .form-input {
        padding-left: 38px;
    }

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    color: var(--guinda);
    opacity: 0.5;
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--guinda);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: 'Nunito', sans-serif;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(107, 26, 43, 0.25);
}

    .btn-primary:hover {
        background: var(--guinda-light);
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(107, 26, 43, 0.3);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: #C4C9D4;
    font-size: 12px;
    font-weight: 600;
}

    .divider::before,
    .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #E5E7EB;
    }

.institutional-note {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(107, 26, 43, 0.05);
    border: 1px solid rgba(107, 26, 43, 0.15);
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 14px;
}

    .institutional-note span {
        font-size: 12px;
        color: var(--guinda);
        font-weight: 600;
    }

.panel {
    display: none;
}

    .panel.active {
        display: block;
    }

.form-footer {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: var(--gray);
}

    .form-footer a {
        color: var(--guinda);
        font-weight: 700;
        text-decoration: none;
    }

        .form-footer a:hover {
            text-decoration: underline;
        }

.register-scroll {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: var(--guinda) #F3F4F6;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.panel.active {
    animation: fadeIn 0.25s ease;
}

[data-theme="dark"] .left-panel {
    background: var(--body-bg);
}

    [data-theme="dark"] .left-panel::before {
        background: rgba(107, 26, 43, 0.04);
    }

    [data-theme="dark"] .left-panel::after {
        background: rgba(107, 26, 43, 0.06);
    }

[data-theme="dark"] .right-panel {
    background: var(--guinda);
}

[data-theme="dark"] .brand-logo {
    background: var(--gray-light) !important;
}

[data-theme="dark"] .feature-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .feature-text {
    color: var(--text-color);
}

[data-theme="dark"] .brand-subtitle {
    color: var(--guinda-light);
    opacity: 0.9;
}

[data-theme="dark"] .divider::before,
[data-theme="dark"] .divider::after {
    background: var(--border-color);
}

[data-theme="dark"] .institutional-note {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--border-color);
}

    [data-theme="dark"] .institutional-note span {
        color: var(--guinda-light);
    }

[data-theme="dark"] .form-label {
    color: var(--guinda-light);
}

[data-theme="dark"] .form-footer a {
    color: var(--guinda-light);
}

[data-theme="dark"] select option {
    background-color: #3a1d1d;
    color: #f8fafc;
}
@media (max-width: 768px) {
    main {
        grid-template-columns: 1fr;
        min-height: calc(100vh - 60px);
    }

    .left-panel {
        padding: 1.5rem 1rem;
        min-height: auto;
    }

    .brand-logo {
        width: 90px;
        height: 90px;
        min-width: 90px;
        min-height: 90px;
        margin-bottom: 0.75rem;
    }

    .brand-title {
        font-size: 42px;
        margin-bottom: 4px;
    }

    .brand-subtitle {
        font-size: 11px;
        margin-bottom: 1rem;
    }

    .brand-features {
        display: none;
    }

    .right-panel {
        padding: 1.5rem 1rem 2rem;
        align-items: flex-start;
    }

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

    .form-card {
        padding: 1.25rem;
    }

    .register-scroll {
        max-height: none;
        overflow-y: visible;
    }

    nav {
        padding: 0 1rem;
    }
}

@media (max-width: 400px) {
    .brand-title {
        font-size: 34px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
