/* ============================================
   SIGAP BANJIR - Profil & Login/Register Styles
   Used by: profil.html, profil-loggedin.html, daftar.html
   ============================================ */

/* ============================================
   Profil Page (Logged-in)
   ============================================ */
.profil-container {
    padding: 28px 36px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.profil-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    margin-bottom: 20px;
}

.profil-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-400), var(--primary-600));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.profil-avatar .material-icons-outlined {
    font-size: 40px;
    color: white;
}

.profil-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    margin-bottom: 4px;
}

.profil-card > p {
    font-size: 13px;
    color: var(--gray-500);
    margin-bottom: 20px;
}

.profil-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-100);
}

.profil-stat {
    text-align: center;
}

.profil-stat .stat-num {
    display: block;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-600);
}

.profil-stat span:last-child {
    font-size: 12px;
    color: var(--gray-500);
}

.profil-menu {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.profil-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 22px;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
    transition: all var(--transition-fast);
}

.profil-menu-item:last-child {
    border-bottom: none;
}

.profil-menu-item:hover {
    background: var(--gray-50);
}

.profil-menu-item .material-icons-outlined {
    font-size: 22px;
    color: var(--gray-400);
}

.profil-menu-item .arrow {
    margin-left: auto;
    font-size: 20px;
    color: var(--gray-300);
}

.profil-menu-item.danger {
    color: var(--red-500);
}

.profil-menu-item.danger .material-icons-outlined {
    color: var(--red-500);
}

/* ============================================
   Profil Login Page (Full Page - JAKI Style)
   ============================================ */
.profil-login-page {
    display: flex;
    min-height: calc(100vh - var(--top-bar-height));
    animation: fadeIn 0.4s ease;
}

.profil-login-branding {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #0f2744 0%, #1a365d 40%, #1e40af 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    overflow: hidden;
}

.profil-login-branding::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.1);
}

.profil-login-branding::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.08);
}

.branding-content {
    position: relative;
    z-index: 1;
}

.branding-content .logo {
    margin-bottom: 32px;
}

.branding-content .logo-text h1 {
    color: white;
}

.branding-content .logo-text span {
    color: rgba(255,255,255,0.6);
}

.branding-content h2 {
    font-size: 28px;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
}

.branding-content p {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    line-height: 1.7;
    margin-bottom: 32px;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.branding-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.branding-feature .material-icons-outlined {
    font-size: 20px;
    color: #60a5fa;
    background: rgba(96, 165, 250, 0.15);
    padding: 6px;
    border-radius: var(--radius-sm);
}

/* Right Side - Form */
.profil-login-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    overflow-y: auto;
}

.login-form-inner {
    width: 100%;
    max-width: 400px;
}

.login-form-header {
    margin-bottom: 28px;
}

.login-form-header h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 6px;
}

.login-form-header p {
    font-size: 14px;
    color: var(--gray-500);
}

.login-terms {
    margin-top: 20px;
    text-align: center;
}

.login-terms p {
    font-size: 11px;
    color: var(--gray-400);
    line-height: 1.6;
}

.login-terms a {
    color: var(--primary-600);
    font-weight: 600;
    text-decoration: underline;
}

/* ============================================
   Form Groups (Login & Register)
   ============================================ */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 6px;
}

.input-icon-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    background: var(--gray-50);
    transition: all var(--transition-fast);
}

.input-icon-group:focus-within {
    border-color: var(--primary-400);
    background: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.input-icon-group .material-icons-outlined {
    font-size: 20px;
    color: var(--gray-400);
    flex-shrink: 0;
}

.input-icon-group input,
.input-icon-group select {
    flex: 1;
    padding: 12px 0;
    background: none;
    color: var(--gray-800);
    font-size: 14px;
}

.form-select {
    appearance: none;
    width: 100%;
}

.toggle-password {
    color: var(--gray-400);
    padding: 4px;
    display: flex;
    align-items: center;
}

.toggle-password .material-icons-outlined {
    font-size: 20px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.forgot-link {
    font-size: 13px;
    color: var(--primary-600);
    font-weight: 600;
}

.divider-text {
    position: relative;
    text-align: center;
    margin: 24px 0;
}

.divider-text::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-200);
}

.divider-text span {
    background: white;
    padding: 0 14px;
    font-size: 12px;
    color: var(--gray-400);
    position: relative;
}

.social-login {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-social {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    background: white;
    transition: all var(--transition-fast);
}

.btn-social:hover {
    background: var(--gray-50);
    box-shadow: var(--shadow-sm);
}

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

.switch-form a {
    color: var(--primary-600);
    font-weight: 700;
}

/* ============================================
   Responsive - Profil/Login Pages
   ============================================ */
@media (max-width: 992px) {
    .profil-login-branding {
        width: 300px;
        padding: 32px 24px;
    }

    .branding-content h2 {
        font-size: 22px;
    }
}

@media (max-width: 768px) {
    .profil-login-page {
        flex-direction: column;
    }

    .profil-login-branding {
        width: 100%;
        padding: 28px 20px;
        min-height: auto;
    }

    .branding-content h2 {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .branding-content p {
        font-size: 13px;
        margin-bottom: 20px;
    }

    .profil-login-form {
        padding: 24px 20px;
    }

    .login-form-header h2 {
        font-size: 22px;
    }

    .profil-container {
        padding: 20px 16px;
    }

    .profil-card {
        padding: 24px;
    }

    .profil-stats {
        gap: 20px;
    }

    .profil-stat .stat-num {
        font-size: 20px;
    }

    .social-login {
        flex-direction: column;
    }

    .btn-social {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .profil-login-branding {
        padding: 20px 16px;
    }

    .branding-features {
        display: none;
    }

    .branding-content h2 {
        font-size: 18px;
    }

    .branding-content p {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .profil-login-form {
        padding: 20px 16px;
    }

    .login-form-inner {
        max-width: 100%;
    }

    .login-form-header {
        margin-bottom: 20px;
    }

    .login-form-header h2 {
        font-size: 20px;
    }

    .login-form-header p {
        font-size: 13px;
    }

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

    .input-icon-group input,
    .input-icon-group select {
        padding: 10px 0;
        font-size: 13px;
    }

    .profil-container {
        padding: 16px 12px;
    }

    .profil-card {
        padding: 20px;
        margin-bottom: 16px;
    }

    .profil-card h3 {
        font-size: 16px;
    }

    .profil-avatar {
        width: 64px;
        height: 64px;
    }

    .profil-avatar .material-icons-outlined {
        font-size: 32px;
    }

    .profil-menu-item {
        padding: 14px 16px;
        font-size: 13px;
        gap: 12px;
    }

    .form-options {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .switch-form {
        font-size: 12px;
    }

    .divider-text {
        margin: 18px 0;
    }
}

