/* ==========================================================================
   1. GLOBAL & NAVBAR STYLE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

body {
   background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)), 
                     url('https://calohea.org/wp-content/uploads/2021/11/Institution-photo.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    color: white;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5);
}
.navbar .logo {
    font-size: 24px;
    font-weight: bold;
}
.navbar .logo span {
    color:  rgba(124, 161, 204, 0.85); ;
}
.navbar .nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}
.navbar .nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}
.navbar .nav-links a:hover {
    color:  rgba(124, 161, 204, 0.85); 
}
.navbar .nav-buttons button {
    padding: 10px 20px;
    background-color: rgba(124, 161, 204, 0.85); ;
    border: none;
    color: rgb(0, 0, 0);
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}
.navbar .nav-buttons .btn-signout {
    background: transparent;
    border: 2px solid white !important;
    color: rgb(255, 255, 255);
}  
.main-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: calc(100vh - 80px);
}

/* ==========================================================================
   2. VISUAL TAB BAR NAVIGATION
   ========================================================================== */
.tab-navigation {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative; /* Penting agar garis bisa bergerak di dalam wadah ini */
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 10px;
}

.tab-item {
    font-size: 14px;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.5);
    width: 50%;
    text-align: center;
    transition: color 0.3s ease; /* Transisi warna teks */
}

/* Teks menjadi putih saat tab aktif */
.tab-item.active {
    color: #ffffff;
}

/* === Ini adalah garis kuning penanda yang baru === */
.tab-indicator {
    position: absolute;
    bottom: -2px; /* Menempel tepat di atas border abu-abu */
    left: 0;
    width: 50%; /* Lebarnya persis menutupi satu tab */
    height: 3px;
    background-color: #f1c40f;
    border-radius: 3px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Efek meluncur mulus */
}

/* Saat tombol Next diklik (JS menambahkan class 'step-2-active' ke form-box), 
   garis akan meluncur sejauh 100% ke kanan menuju Tab 2 */
.form-box.step-2-active .tab-indicator {
    transform: translateX(100%);
}

/* ==========================================================================
   3. KOTAK UTAMA (TRANSISI GAYA ANTAR TAB)
   ========================================================================== */
/* Tampilan Awal: Desain Biru myITS SSO */
.form-box {
    background: rgba(124, 161, 204, 0.85); 
    backdrop-filter: blur(5px); 
    padding: 40px;
    border-radius: 16px;
    width: 450px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

/* Saat berpindah ke Tab 2: Berubah menjadi Hitam Transparan Bulat Lonjong */
.form-box.step-2-active {
    background: rgba(124, 161, 204, 0.85); 
    backdrop-filter: blur(5px); 
    padding: 40px;
    border-radius: 16px;
}

/* ==========================================================================
   4. INPUT & TOMBOL KHUSUS TAB 1 (Gaya Garis Minimalis)
   ========================================================================== */
.sso-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}
.its-brand {
    text-align: left;
    line-height: 1.2;
}
.logo-text-its {
    font-size: 24px;
    font-weight: 900;
}
.sub-text-its {
    font-size: 9px;
    display: block;
}
.myits-brand {
    text-align: right;
}
.myits-text {
    font-size: 26px;
    font-weight: bold;
    display: block;
}
.sso-text {
    font-size: 11px;
    display: block;
}

#step-1 input[type="text"] {
    width: 100%;
    padding: 12px 5px;
    background: transparent;
    border: none;
    border-bottom: 2px solid white;
    color: white;
    font-size: 16px;
    outline: none;
}

.btn-next {
    width: 100%;
    padding: 12px;
    background-color: #f1c40f;
    color: #002e5d;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 25px;
}
.sso-footer {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-top: 25px;
}
.sso-footer a { color: white; text-decoration: none;}

/* ==========================================================================
   5. INPUT & TOMBOL KHUSUS TAB 2 (Gaya Oval Kapsul)
   ========================================================================== */
h1 {
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

#step-2 input[type="text"] {
    width: 100%;
    padding: 12px 20px;
    margin-bottom: 15px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    color: white;
    outline: none;
}
#step-2 input::placeholder { color: #ddd; }

.btn-register {
    width: 100%;
    padding: 12px;
    background-color: white;
    color: black;
    border: none;
    border-radius: 25px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 10px;
}
.back-link { margin-top: 15px; text-align: center; }
.back-link a { color: white; text-decoration: underline; font-size: 13px;}

/* ==========================================================================
   6. UTILITIES & RESPONSIVE
   ========================================================================== */
.hidden { display: none !important; }

#result {
    margin-top: 20px;
    text-align: left;
    font-size: 14px;
    background: rgba(0,0,0,0.4);
    padding: 15px;
    border-radius: 10px;
    border-left: 4px solid #f1c40f;
}

@media screen and (max-width: 768px) {
    .navbar { flex-direction: column; padding: 10px; }
    .nav-links { gap: 10px; margin: 10px 0; }
    .form-box { width: 90%; padding: 20px; }
}