/**
 * AT&T Style CSS
 * Fully Responsive - Desktop, Tablet, Mobile
 * Version: 2.0
 */

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* ============================================
   MAIN CONTAINER - BOX DI TENGAH
   ============================================ */
.main-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 20px;
}

/* ============================================
   BOX FORM
   ============================================ */
.container {
    max-width: 480px;
    width: 100%;
    background: white;
    border-radius: 12px;
    padding: 48px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

/* ============================================
   FOOTER DI LUAR BOX - FULL WIDTH
   ============================================ */
.global-footer {
    width: 100%;
    background-color: #f5f5f5;
    padding: 24px 20px;
    border-top: 0px solid #e0e0e0;
    margin-top: auto;
}

.global-footer .footer-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================
   LOGO
   ============================================ */
.logo {
    text-align: center;
    margin-bottom: 32px;
}

.logo img {
    max-width: 130px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.logo svg {
    width: 130px;
    height: auto;
    margin-bottom: 1px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
.signin-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.signin-subtitle {
    text-align: center;
    font-size: 25px;
    color: #000;
    font-weight: bold;
    margin-bottom: 32px;
    line-height: 1.1;
}

.welcome-title {
    text-align: center;
    font-size: 30px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.perso-title {
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #000;
    margin-bottom: 15px;
}

.user-id-display {
    text-align: center;
    font-size: 16px;
    font-weight: 500;
    color: #000;
    margin-bottom: 24px;
    word-break: break-all;
}

/* ============================================
   ERROR NOTICE
   ============================================ */
.error-notice {
    background: #ffffff;
    padding: 12px 16px;
    margin-bottom: 24px;
    border-radius: 4px;
}

.error-notice p {
    color: #444;
    font-size: 15px;
    margin: 0;
}

.care-code {
    font-size: 13px;
    color: #b81500;
    margin-top: 4px;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.form-input:focus {
    border-color: #0057a8;
    outline: none;
}

.form-input::placeholder {
    color: #666;
}

/* Checkbox */
.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.checkbox-group input {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    cursor: pointer;
    accent-color: #004496;
}

.checkbox-group label {
    font-size: 14px;
    color: #444;
    cursor: pointer;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 35px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-primary {
    background: #004496;
    color: white;
}

.btn-primary:hover {
    background: #005ea6;
}

.btn-primary:active {
    transform: scale(0.98);
}

/* Links */
.forgot-link {
    display: block;
    margin-top: 24px;
    font-size: 15px;
    font-weight: bold;
    color: #007ea8;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

.user-links {
    margin-top: 32px;
}

.user-links a {
    font-size: 15px;
    color: #007ea8;
    font-weight: bold;
    text-decoration: none;
    margin: 0 4px;
}

.user-links a:hover {
    text-decoration: underline;
}

.user-links .separator {
    color: #ccc;
    margin: 0 4px;
}

/* ============================================
   FORM ROW (Two Columns)
   ============================================ */
.form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 16px;
}

/* Select Dropdown */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    cursor: pointer;
}

/* ============================================
   FOOTER LINKS
   ============================================ */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 12px;
    color: #000;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
    color: #000;
}

.footer-links .separator {
    font-size: 12px;
    color: #ccc;
}

.copyright {
    text-align: center;
    font-size: 12px;
    color: #444;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007ab8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   ============================================
   TABLET STYLES (768px - 1024px)
   ============================================
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
    
    /* MAIN CONTAINER */
    .main-container {
        padding: 30px 20px;
    }
    
    /* BOX FORM - Tablet */
    .container {
        max-width: 550px;
        padding: 40px 35px;
        border-radius: 12px;
    }
    
    /* LOGO - Tablet */
    .logo img {
        max-width: 110px;
    }
    
    .logo svg {
        width: 110px;
    }
    
    /* TYPOGRAPHY - Tablet */
    .signin-title {
        font-size: 28px;
    }
    
    .signin-subtitle {
        font-size: 22px;
        margin-bottom: 28px;
    }
    
    .welcome-title {
        font-size: 26px;
        margin-bottom: 12px;
    }
    
    .perso-title {
        font-size: 22px;
    }
    
    .user-id-display {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    /* ERROR NOTICE - Tablet */
    .error-notice {
        padding: 10px 14px;
        margin-bottom: 20px;
    }
    
    .error-notice p {
        font-size: 14px;
    }
    
    .care-code {
        font-size: 12px;
    }
    
    /* FORM ELEMENTS - Tablet */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-label {
        font-size: 13px;
        margin-bottom: 6px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    /* Buttons - Tablet */
    .btn {
        padding: 12px;
        font-size: 16px;
        border-radius: 30px;
    }
    
    /* Links - Tablet */
    .forgot-link {
        margin-top: 20px;
        font-size: 14px;
    }
    
    .user-links {
        margin-top: 28px;
    }
    
    .user-links a {
        font-size: 14px;
    }
    
    /* FOOTER - Tablet (Kiri Bawah) */
    .global-footer {
        padding: 20px 20px;
    }
    
    .footer-links {
        justify-content: flex-start;
        gap: 10px;
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 11px;
    }
    
    .footer-links .separator {
        font-size: 11px;
    }
    
    .copyright {
        text-align: left;
        font-size: 10px;
    }
    
    /* FORM ROW - Tablet */
    .form-row {
        gap: 14px;
        margin-bottom: 20px;
    }
}

/* ============================================
   ============================================
   MOBILE STYLES (up to 768px)
   ============================================
   ============================================ */
@media (max-width: 768px) {
    
    /* BODY - Mobile */
    body {
        background-color: white;
    }
    
    /* MAIN CONTAINER - Mobile */
    .main-container {
        padding: 20px 16px;
        align-items: flex-start;
    }
    
    /* BOX FORM - Mobile (Full width) */
    .container {
        max-width: 100%;
        padding: 28px 20px;
        border-radius: 0;
        box-shadow: none;
        background: white;
    }
    
    /* LOGO - Mobile */
    .logo {
        margin-bottom: 24px;
    }
    
    .logo img {
        max-width: 90px;
    }
    
    .logo svg {
        width: 90px;
    }
    
    /* TYPOGRAPHY - Mobile */
    .signin-title {
        font-size: 24px;
        margin-bottom: 4px;
    }
    
    .signin-subtitle {
        font-size: 18px;
        margin-bottom: 24px;
        line-height: 1.2;
    }
    
    .welcome-title {
        font-size: 22px;
        margin-bottom: 10px;
    }
    
    .perso-title {
        font-size: 20px;
        margin-bottom: 12px;
    }
    
    .user-id-display {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    /* ERROR NOTICE - Mobile */
    .error-notice {
        padding: 10px 12px;
        margin-bottom: 20px;
    }
    
    .error-notice p {
        font-size: 13px;
    }
    
    .care-code {
        font-size: 11px;
    }
    
    /* FORM ELEMENTS - Mobile */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-label {
        font-size: 13px;
        font-weight: bold;
        margin-bottom: 6px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 8px;
    }
    
    /* Checkbox - Mobile */
    .checkbox-group {
        margin-bottom: 20px;
    }
    
    .checkbox-group input {
        width: 16px;
        height: 16px;
    }
    
    .checkbox-group label {
        font-size: 13px;
    }
    
    /* Buttons - Mobile */
    .btn {
        padding: 12px;
        font-size: 16px;
        border-radius: 30px;
    }
    
    /* Links - Mobile */
    .forgot-link {
        margin-top: 20px;
        font-size: 14px;
    }
    
    .user-links {
        margin-top: 24px;

    }
    
    .user-links a {
        font-size: 13px;
        margin: 0 3px;
    }
    
    /* FORM ROW - Mobile (Menjadi column) */
    .form-row {
        flex-direction: column;
        gap: 18px;
        margin-bottom: 0;
    }
    
    .form-row .form-group {
        margin-bottom: 16px;
    }
    
    /* FOOTER - Mobile (Kiri Bawah, Menurun ke Bawah) */
    .global-footer {
        padding: 20px 16px;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links {
        justify-content: flex-start;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 16px;
    }
    
    .footer-links a {
        font-size: 11px;
        display: inline-block;
    }
    
    .footer-links .separator {
        display: none;
    }
    
    /* Menambahkan pemisah manual untuk mobile */
    .footer-links a:not(:last-child)::after {
        content: "";
        display: block;
    }
    
    .copyright {
        text-align: left;
        font-size: 10px;
    }
    
    /* LOADING SPINNER - Mobile */
    .loading-spinner {
        width: 40px;
        height: 40px;
        border-width: 3px;
    }
}

/* ============================================
   ============================================
   SMALL MOBILE STYLES (up to 480px)
   ============================================
   ============================================ */
@media (max-width: 480px) {
    
    /* MAIN CONTAINER - Small Mobile */
    .main-container {
        padding: 16px 12px;
    }
    
    /* BOX FORM - Small Mobile */
    .container {
        padding: 24px 16px;
    }
    
    /* LOGO - Small Mobile */
    .logo img {
        max-width: 70px;
    }
    
    .logo svg {
        width: 70px;
    }
    
    /* TYPOGRAPHY - Small Mobile */
    .signin-title {
        font-size: 22px;
    }
    
    .signin-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .welcome-title {
        font-size: 20px;
    }
    
    .perso-title {
        font-size: 18px;
    }
    
    .user-id-display {
        font-size: 13px;
    }
    
    /* FORM ELEMENTS - Small Mobile */
    .form-group {
        margin-bottom: 13px;
    }
    
    .form-label {
        font-size: 12px;
    }
    
    .form-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    /* Buttons - Small Mobile */
    .btn {
        padding: 11px;
        font-size: 15px;
    }
    
    /* Links - Small Mobile */
    .forgot-link {
        font-size: 13px;
    }
    
    .user-links a {
        font-size: 12px;
        
    }
    
    /* FOOTER - Small Mobile */
    .global-footer {
        padding: 16px 12px;
    }
    
    .footer-links {
        gap: 6px;
        margin-bottom: 12px;
    }
    
    .footer-links a {
        font-size: 10px;
    }
    
    .copyright {
        font-size: 9px;
    }
}

/* ============================================
   ============================================
   LANDSCAPE MODE (Mobile Landscape)
   ============================================
   ============================================ */
@media (max-width: 768px) and (orientation: landscape) {
    
    /* BODY - Landscape */
    body {
        background-color: #f5f5f5;
    }
    
    /* MAIN CONTAINER - Landscape */
    .main-container {
        padding: 20px;
        align-items: center;
    }
    
    /* BOX FORM - Landscape */
    .container {
        max-width: 500px;
        padding: 24px 30px;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
    
    /* FORM ROW - Landscape */
    .form-row {
        flex-direction: row;
        gap: 12px;
    }
    
    /* FOOTER - Landscape */
    .global-footer {
        padding: 16px 20px;
    }
    
    .footer-links {
        flex-direction: row;
        justify-content: center;
        gap: 8px;
    }
    
    .footer-links .separator {
        display: inline;
    }
    
    .copyright {
        text-align: center;
    }
}