/* Reset dan dasar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #f4f9fc;
    color: #333;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Container utama */
.container {
    width: 100%;
    max-width: 420px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 25px;
}


/* Judul halaman */
h2 {
    color: #040404;
    text-align:center;
    font-size: 2.1rem;
    margin-bottom: 2px;
}

/* Deskripsi */
p {
    margin-bottom: 40px;
    text-align:center;
    font-size: 23px;
    font-weight: bold;
    line-height:24px;
    color: #040404;
}

/* Form group */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: bold;
    color: #030303;
}
.user-id-display {
    background-color: #ffffff;
    padding: 6px 9px;
    margin-bottom: 1px;
    text-align: left;
    font-weight: normal;
    color: #000000;
    font-size:16px;
}

.takola {
    background-color: #ffffff;
    padding: 6px 9px;
    margin-bottom: 1px;
    text-align: center;
    font-weight: normal;
    color: #000000;
    font-size:16px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
    margin-bottom: 7px;
}

input:focus {
    border-color: #0099ff;
    outline: none;
}

/* Tombol */
.btn-primary {
    display: inline-block;
    background-color: #003385;
    color: #fff;
    padding: 11px 16px;
    border: none;
    border-radius: 33px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: bold;
    transition: background 0.3s;
    width: 100%;
}

.btn-primary:hover {
    background-color: #003385;
}

/* Footer */
footer {
    background-color: #f4f9fc;
    padding: 20px;
    font-size: 0.9rem;
    color: #555;
}

/* Desktop: Horizontal center */
.footer-content {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* Link style */
.footer-content a {
    color: #040404;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-content a:hover {

}

/* Mobile: Vertical left like AT&T */
@media screen and (max-width: 600px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start; /* kiri */
        gap: 15px;
        padding-left: 0px;
    }
    .footer-content a {
        font-size: 0.7rem; /* sedikit lebih besar di mobile */
    }
}
}

/* Error Box */
.att-error-box {
    text-align: center;
}

.att-error-box p {
    margin-bottom: 20px;
}

/* Success Box */
.att-success-box {
    text-align: center;
}

.att-success-icon {
    font-size: 60px;
    color: var(--att-success);
    margin: 20px 0;
    line-height: 1;
}

.att-small-text {
    font-size: 14px;
    color: var(--att-dark-gray);
    margin-top: 20px;
}

/* Loading Animation */
.att-loading-bar {
    width: 100%;
    height: 4px;
    background: var(--att-light-gray);
    margin: 20px 0;
    border-radius: 2px;
    overflow: hidden;
}

.att-loading-progress {
    height: 100%;
    width: 0;
    background: var(--att-blue);
    animation: loading 5s linear forwards;
}

@keyframes loading {
    from { width: 0; }
    to { width: 100%; }
}

/* ========== MEDIA QUERIES ========== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .container {
        max-width: 90%;
        margin: 30px auto;
        padding: 20px;
    }
    
    h2 {
        font-size: 2.1rem;
    }
    
    p {
        font-size: 22px;
        margin-bottom: 30px;
    }
    
    .footer-content {
        justify-content: space-around;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) {
    body {
        padding: 0 10px;
    }
    
    .container {
        margin: 20px auto;
        padding: 15px;
        border-radius: 8px;
    }
    
    h2 {
        font-size: 1.9rem;
        margin-bottom: 5px;
    }
    
    p {
        font-size: 20px;
        margin-bottom: 25px;
        line-height: 1.4;
    }
    
    input[type="text"],
    input[type="password"],
    input[type="email"] {
        padding: 12px 14px;
        font-size: 16px; /* Mencegah zoom pada iOS */
    }
    
    .btn-primary {
        padding: 12px;
        font-size: 16px;
    }
    
    footer {
        padding: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .footer-content a {
        font-size: 14px;
    }
    
    .att-success-icon {
        font-size: 50px;
    }
}
/* Mobile Small (320px - 575px) */
@media (max-width: 575px) {
    .container {
        margin: 15px auto;
        padding: 15px 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    p {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .form-group {
        margin-bottom: 12px;
    }
    
    label {
        font-size: 13px;
    }
    
    .btn-primary {
        border-radius: 25px;
    }
    
    footer {
        padding: 12px 10px;
        font-size: 0.8rem;
    }
    
    .att-small-text {
        font-size: 12px;
    }
    
    .att-success-icon {
        font-size: 45px;
        margin: 15px 0;
    }
}

/* Very Small Phones (max 320px) */
@media (max-width: 320px) {
    h2 {
        font-size: 1.6rem;
    }
    
    p {
        font-size: 17px;
    }
    
    .container {
        padding: 12px 10px;
    }
    
    .footer-content a {
        font-size: 13px;
    }
}