/* ==========================================================================
   Modern Ultra-Transparent / Glassmorphism Auth Styles
   Internal Tech Support Portal - PT UBC Medical Indonesia Tbk
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --glass-bg: rgba(10, 25, 47, 0.32);
    --glass-bg-hover: rgba(15, 32, 60, 0.42);
    --glass-border: rgba(255, 255, 255, 0.24);
    --glass-border-focus: #38bdf8;
    --glass-input-bg: rgba(255, 255, 255, 0.08);
    --glass-input-focus: rgba(255, 255, 255, 0.16);
    --glass-text-main: #ffffff;
    --glass-text-muted: #cbd5e1;
    --glass-text-sub: #e2e8f0;
    --tech-cyan: #38bdf8;
    --tech-blue: #0284c7;
}

* {
    box-sizing: border-box;
}

html {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body.auth-body {
    width: 100%;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #081325;
    background-image: 
        linear-gradient(135deg, rgba(8, 20, 39, 0.32) 0%, rgba(11, 29, 58, 0.22) 50%, rgba(15, 23, 42, 0.35) 100%),
        url('../img/profile/Technical_Support_Wallpaper.png');
    background-size: 100% 100% !important;
    background-position: center center !important;
    background-attachment: fixed !important;
    background-repeat: no-repeat !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 15px;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    color: var(--glass-text-main);
}

/* Ambient glow lighting behind glass */
.auth-ambient-glow {
    position: fixed;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(100px);
    opacity: 0.35;
}

.auth-ambient-top {
    top: -140px;
    left: -140px;
    background: radial-gradient(circle, #06b6d4, #0284c7);
}

.auth-ambient-bottom {
    bottom: -140px;
    right: -140px;
    background: radial-gradient(circle, #38bdf8, #2563eb);
}

/* Glass Card Container */
.internal-auth-wrapper {
    width: 100%;
    max-width: 490px;
    margin: auto;
    position: relative;
    z-index: 1;
}

.internal-auth-card {
    background: var(--glass-bg);
    backdrop-filter: blur(14px) saturate(170%);
    -webkit-backdrop-filter: blur(14px) saturate(170%);
    border: 1px solid var(--glass-border);
    border-radius: 26px;
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.16) inset,
        0 1px 3px rgba(255, 255, 255, 0.25) inset;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.internal-auth-card:hover {
    box-shadow: 
        0 25px 60px -10px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.22) inset;
}

/* Card Top Glowing Line */
.card-top-accent {
    height: 4px;
    background: linear-gradient(90deg, #38bdf8, #06b6d4, #818cf8, #38bdf8);
    background-size: 200% 100%;
    animation: gradientShift 6s ease infinite;
    width: 100%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header Section */
.internal-card-header {
    padding: 34px 32px 14px 32px;
    text-align: center;
}

.logo-badge-box {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 22px;
    border-radius: 16px;
    display: inline-block;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    margin-bottom: 16px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.logo-badge-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
}

.internal-logo-img {
    height: 42px;
    max-width: 200px;
    object-fit: contain;
    display: block;
}

.internal-portal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(56, 189, 248, 0.16);
    color: #7dd3fc;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 30px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 12px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    backdrop-filter: blur(8px);
}

.internal-portal-badge i {
    font-size: 0.78rem;
    color: #38bdf8;
}

.internal-portal-title {
    font-size: 1.55rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 5px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.internal-portal-subtitle {
    font-size: 0.84rem;
    color: #cbd5e1;
    margin-bottom: 0;
    line-height: 1.45;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Card Body Section */
.internal-card-body {
    padding: 10px 32px 34px 32px;
}

/* Internal Notice Box */
.internal-notice-box {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.internal-notice-icon {
    color: #38bdf8;
    font-size: 1rem;
    flex-shrink: 0;
}

.internal-notice-text {
    font-size: 0.74rem;
    color: #f1f5f9;
    line-height: 1.35;
}

/* Form Groups & Glass Inputs */
.auth-group {
    margin-bottom: 18px;
}

.auth-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.auth-label i {
    font-size: 0.82rem;
    color: #38bdf8;
    margin-right: 6px;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-prefix {
    position: absolute;
    left: 15px;
    color: #94a3b8;
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.auth-input {
    width: 100%;
    height: 48px;
    padding: 10px 16px 10px 42px;
    border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    background-color: var(--glass-input-bg);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.92rem;
    color: #ffffff;
    font-family: inherit;
    transition: all 0.25s ease;
}

.auth-input::placeholder {
    color: #94a3b8;
}

.auth-input:focus {
    background-color: var(--glass-input-focus);
    border-color: #38bdf8;
    outline: none;
    box-shadow: 0 0 0 3.5px rgba(56, 189, 248, 0.3);
    color: #ffffff;
}

.input-with-icon:focus-within .input-icon-prefix {
    color: #38bdf8;
}

/* Password Toggle */
.btn-toggle-pwd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #cbd5e1;
    padding: 6px 10px;
    cursor: pointer;
    border-radius: 8px;
    font-size: 0.92rem;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 3;
}

.btn-toggle-pwd:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.16);
}

.btn-toggle-pwd:focus {
    outline: none;
}

/* Remember Me & Forgot Password */
.auth-meta-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: -2px;
    margin-bottom: 22px;
    font-size: 0.82rem;
}

.auth-meta-row .custom-control-label {
    color: #cbd5e1;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.auth-meta-row .custom-control-input:checked ~ .custom-control-label::before {
    background-color: #0284c7;
    border-color: #38bdf8;
}

.auth-meta-row .custom-control-label::before {
    background-color: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.auth-link-forgot {
    color: #38bdf8;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

.auth-link-forgot:hover {
    color: #7dd3fc;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
    text-decoration: underline;
}

/* Glassmorphism Glowing Primary Button */
.btn-auth-primary {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.9) 0%, rgba(3, 105, 161, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: 12px;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.6);
    transition: all 0.25s ease;
    cursor: pointer;
    width: 100%;
}

.btn-auth-primary:hover {
    background: linear-gradient(135deg, rgba(3, 105, 161, 0.95) 0%, rgba(2, 132, 199, 0.9) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -4px rgba(56, 189, 248, 0.65);
}

.btn-auth-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
}

/* Divider */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 22px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
}

.auth-divider span {
    position: relative;
    background: rgba(10, 25, 47, 0.6);
    backdrop-filter: blur(10px);
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.72rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Translucent SSO Buttons */
.sso-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 22px;
}

.btn-sso {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 0.84rem;
    font-weight: 600;
    text-decoration: none !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    transition: all 0.25s ease;
}

.btn-sso:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.btn-sso-google:hover {
    border-color: rgba(234, 67, 53, 0.6);
    background: rgba(234, 67, 53, 0.18);
}

.btn-sso-microsoft:hover {
    border-color: rgba(0, 120, 212, 0.6);
    background: rgba(0, 120, 212, 0.2);
}

.sso-icon-google {
    color: #f87171;
    font-size: 0.95rem;
}

.sso-icon-microsoft {
    color: #38bdf8;
    font-size: 0.95rem;
}

/* Footer & Registration Prompt */
.auth-card-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 18px;
    text-align: center;
}

.register-prompt {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.register-prompt a {
    color: #38bdf8;
    font-weight: 700;
    text-decoration: none;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.register-prompt a:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

.auth-copyright {
    font-size: 0.72rem;
    color: #94a3b8;
    margin-bottom: 0;
}

/* Translucent Alert Styling */
.internal-card-body .alert {
    border-radius: 12px;
    font-size: 0.84rem;
    border: none;
    padding: 11px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.internal-card-body .alert-danger {
    background-color: rgba(239, 68, 68, 0.22);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-left: 4px solid #ef4444;
}

.internal-card-body .alert-success {
    background-color: rgba(34, 197, 94, 0.22);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.4);
    border-left: 4px solid #22c55e;
}

/* Validation error text */
.auth-error-feedback {
    display: block;
    font-size: 0.76rem;
    color: #fca5a5;
    margin-top: 5px;
    margin-left: 4px;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    body.auth-body {
        background-size: cover !important;
        background-position: center center !important;
    }
}

@media (max-width: 575.98px) {
    body.auth-body {
        padding: 16px 12px;
    }
    .internal-card-header {
        padding: 26px 20px 10px 20px;
    }
    .internal-card-body {
        padding: 10px 20px 26px 20px;
    }
    .sso-grid {
        grid-template-columns: 1fr;
    }
    .internal-portal-title {
        font-size: 1.35rem;
    }
}
