/* ===========================
   PLATAFORMA ON+ - CSS
   =========================== */

:root {
    --plat-primary: #0d9488;
    --plat-primary-dark: #0f766e;
    --plat-primary-light: #99f6e4;
    --plat-primary-bg: #f0fdfa;
    --plat-secondary: #1e3a5f;
    --plat-secondary-dark: #0f2744;
    --plat-text: #1a1a2e;
    --plat-muted: #64748b;
    --plat-bg: #f1f5f9;
    --plat-white: #ffffff;
    --plat-border: #e2e8f0;
    --plat-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --plat-shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --plat-shadow-lg: 0 10px 50px rgba(0,0,0,0.12);
    --plat-radius: 12px;
    --plat-radius-lg: 20px;
    --plat-transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--plat-text);
    background: var(--plat-bg);
    min-height: 100vh;
}

/* ===========================
   TOPBAR
   =========================== */
.plat-topbar {
    background: var(--plat-secondary-dark);
    padding: 12px 0;
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
}

.plat-topbar .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.plat-brand {
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--plat-transition);
}

.plat-brand:hover {
    color: var(--plat-white);
}

.plat-brand strong {
    color: var(--plat-primary-light);
}

.plat-brand-badge {
    color: var(--plat-white);
    font-size: 1.05rem;
    letter-spacing: -0.3px;
}

.plat-brand-badge strong {
    color: var(--plat-primary-light);
    font-weight: 700;
}

/* ===========================
   AUTH SECTION
   =========================== */
.plat-auth-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 60px;
    background:
        radial-gradient(circle at 20% 80%, rgba(13,148,136,0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(30,58,95,0.04) 0%, transparent 50%),
        var(--plat-bg);
}

.min-vh-auth {
    min-height: calc(100vh - 60px);
}

/* ===========================
   AUTH CARD
   =========================== */
.auth-card {
    background: var(--plat-white);
    border-radius: var(--plat-radius-lg);
    padding: 40px;
    box-shadow: var(--plat-shadow-lg);
    border: 1px solid rgba(0,0,0,0.04);
}

.auth-card-wide {
    padding: 40px 48px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--plat-primary), var(--plat-primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 8px 25px rgba(13,148,136,0.3);
}

.auth-logo i {
    font-size: 1.8rem;
    color: var(--plat-white);
}

.auth-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--plat-secondary);
    margin-bottom: 4px;
}

.auth-header h2 strong {
    color: var(--plat-primary);
}

.auth-header p {
    color: var(--plat-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ===========================
   FORM ELEMENTS
   =========================== */
.form-label {
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--plat-text);
    margin-bottom: 5px;
}

.form-control,
.form-select {
    border: 1.5px solid var(--plat-border);
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.93rem;
    transition: var(--plat-transition);
    background: var(--plat-white);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--plat-primary);
    box-shadow: 0 0 0 3px rgba(13,148,136,0.1);
}

.form-control.is-invalid {
    border-color: #ef4444;
}

.input-group-custom .input-group-text {
    background: var(--plat-bg);
    border: 1.5px solid var(--plat-border);
    border-right: none;
    color: var(--plat-muted);
    padding: 10px 14px;
}

.input-group-custom .form-control {
    border-left: none;
}

.input-group-custom .btn-toggle-pass {
    border: 1.5px solid var(--plat-border);
    border-left: none;
    color: var(--plat-muted);
    background: var(--plat-white);
}

.input-group-custom .btn-toggle-pass:hover {
    color: var(--plat-primary);
    background: var(--plat-primary-bg);
}

/* Form Section Title */
.form-section-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--plat-primary);
    padding-bottom: 8px;
    border-bottom: 2px solid var(--plat-primary-bg);
    margin-bottom: 16px;
}

/* ===========================
   PASSWORD STRENGTH
   =========================== */
.password-strength {
    display: flex;
    gap: 4px;
    height: 4px;
}

.password-strength .bar {
    flex: 1;
    height: 100%;
    border-radius: 2px;
    background: var(--plat-border);
    transition: var(--plat-transition);
}

.password-strength .bar.weak { background: #ef4444; }
.password-strength .bar.medium { background: #f59e0b; }
.password-strength .bar.strong { background: #10b981; }

/* ===========================
   BUTTONS
   =========================== */
.btn-plat-primary {
    background: linear-gradient(135deg, var(--plat-primary), var(--plat-primary-dark));
    color: var(--plat-white);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 11px 24px;
    transition: var(--plat-transition);
    box-shadow: 0 4px 15px rgba(13,148,136,0.25);
}

.btn-plat-primary:hover {
    background: linear-gradient(135deg, var(--plat-primary-dark), var(--plat-secondary-dark));
    color: var(--plat-white);
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(13,148,136,0.35);
}

.btn-plat-outline {
    background: transparent;
    color: var(--plat-primary);
    border: 2px solid var(--plat-primary);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 10px 24px;
    transition: var(--plat-transition);
}

.btn-plat-outline:hover {
    background: var(--plat-primary);
    color: var(--plat-white);
}

/* ===========================
   AUTH FOOTER
   =========================== */
.auth-footer {
    margin-top: 28px;
    text-align: center;
}

.auth-footer hr {
    margin: 18px 0;
    border-color: var(--plat-border);
}

.auth-link {
    color: var(--plat-primary);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--plat-transition);
}

.auth-link:hover {
    color: var(--plat-primary-dark);
}

/* ===========================
   SUCCESS ANIMATION
   =========================== */
.success-anim i {
    font-size: 4.5rem;
    color: #10b981;
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes successPop {
    0% { transform: scale(0); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* ===========================
   ALERTS
   =========================== */
.alert-plat {
    border-radius: 8px;
    font-size: 0.9rem;
    border: none;
    padding: 12px 16px;
}

.alert-plat-danger {
    background: #fef2f2;
    color: #dc2626;
    border-left: 4px solid #dc2626;
}

.alert-plat-success {
    background: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

/* ===========================
   PAGE TRANSITIONS
   =========================== */
#plat-content {
    opacity: 1;
    transition: opacity 0.3s ease;
}

#plat-content.fade-out {
    opacity: 0;
}

.plat-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding-top: 60px;
}

.plat-loader .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(13,148,136,0.15);
    border-top-color: var(--plat-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 767.98px) {
    .auth-card {
        padding: 28px 20px;
    }

    .auth-card-wide {
        padding: 28px 20px;
    }

    .auth-header h2 {
        font-size: 1.3rem;
    }

    .plat-brand span {
        display: none;
    }
}

/* ===========================
   SCROLLBAR
   =========================== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--plat-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--plat-primary);
    border-radius: 3px;
}
