/* ============================
   AUTH PAGE LAYOUT
   ============================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: "Inter", sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Wrapper mengikuti ukuran mobile seperti main.css */
.auth-wrapper {
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 20px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Card container */
.auth-card {
    margin-top: 20px;
    width: 100%;
}

/* Logo Login */
/* ===== LOGO LOGIN ===== */
.auth-logo-wrapper {
    width: 100%;
    display: flex;
    justify-content: center; /* tengah horizontal */
    align-items: center;
    margin-bottom: 8px;
}

/* ===== FIX LOGO LOGIN CENTER ABSOLUT ===== */
.auth-logo {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 200px;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
}




/* Title */
.auth-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    text-align: center;
}

/* Error alert */
.auth-alert {
    background: #ffe1e1;
    color: #c70000;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* Input group */
.auth-input-group {
    margin-bottom: 16px;
    width: 100%;
}

.auth-input-group label {
    font-size: 14px;
    font-weight: 600;
    display: block;
}

.auth-input {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-size: 14px;
}

/* Password wrapper (show/hide) - FIXED WIDTH */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-wrapper input {
    padding-right: 40px;
    width: 100%;
}

.password-wrapper .toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    cursor: pointer;
    color: #777;
    background: none;
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Button */
.auth-btn {
    width: 100%;
    background: #FFCA28;
    color: #000;
    font-weight: 700;
    border: none;
    padding: 14px;
    font-size: 16px;
    border-radius: 12px;
    margin-top: 10px;
    cursor: pointer;
}

/* Register link */
.auth-register {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
}

.auth-register a {
    color: #c50014;
    font-weight: 700;
    text-decoration: none;
}

/* Responsive adjustments for smaller screens */
@media (max-width: 480px) {
    .auth-wrapper {
        padding: 15px;
    }
    
    .auth-title {
        font-size: 22px;
    }
    
    .auth-card {
        margin-top: 10px;
    }
    
    .auth-input {
        padding: 10px;
    }
    
    .password-wrapper .toggle-pass {
        right: 10px;
    }
}

@media (max-width: 360px) {
    .auth-title {
        font-size: 20px;
    }
    
    .auth-input {
        font-size: 16px; /* Prevent zoom on iOS */
    }
}