:root {
    --primary-color: #611232; /* Guinda SECTEI Profundo */
    --accent-color: #bc955c;  /* Dorado Institucional */
    --bg-gradient: linear-gradient(135deg, #611232 0%, #2b0816 100%);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: #bc955c;
}

body.portal {
    background: var(--bg-gradient) !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', 'Source Sans Pro', sans-serif;
    color: #333;
    margin: 0;
}

.portal-card {
    background: var(--glass-bg);
    border: 2px solid var(--accent-color);
    border-radius: 25px;
    padding: 3.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    width: 100%;
    margin: 1rem;
    position: relative;
    overflow: hidden;
}

.portal-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.portal-header h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.portal-header p {
    color: #555;
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 400;
}

.floating-label-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.floating-label-group label {
    position: absolute;
    top: 0.8rem;
    left: 1rem;
    font-size: 1rem;
    color: #999;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 5px;
    margin: 0;
    text-transform: none;
    font-weight: 400;
}

.floating-label-group .form-control:focus ~ label,
.floating-label-group .form-control:not(:placeholder-shown) ~ label {
    top: -0.6rem;
    left: 0.8rem;
    font-size: 0.75rem;
    color: var(--primary-color);
    background: #fff;
    font-weight: 700;
}

.form-control {
    border-radius: 12px;
    padding: 1.2rem 1rem 0.8rem 1rem;
    border: 2px solid #eee;
    background: #fff;
    height: auto;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(97, 18, 50, 0.05);
    outline: none;
}

.btn-portal {
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 1rem;
    font-weight: 700;
    font-size: 1.1rem;
    width: 100%;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(97, 18, 50, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-portal:hover {
    background: #4a0d26;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(97, 18, 50, 0.3);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.status-aceptado { background: #d4edda; color: #155724; }
.status-pendiente { background: #fff3cd; color: #856404; }
.status-rechazado { background: #f8d7da; color: #721c24; }

.portal-footer {
    border-top: 1px solid #eee;
    padding-top: 2rem;
    color: #888;
    font-size: 0.85rem;
    line-height: 1.6;
}

.recover-link {
    color: var(--primary-color);
    font-weight: 700;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.recover-link:hover {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.portal-card {
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1);
}
