/* Reset & Base */
*, *::before, *::after { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body {
    background: #f4f4f2;
    font-family: 'DM Sans', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
}

.page-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.login-wrapper {
    width: 100%;
    max-width: 420px;
    flex-shrink: 0;
}

/* Logo Section */
.logo-row {
    display: flex;
    align-items: center;
    justify-content: center; /* 🔥 ini kunci */
    gap: 10px;
    text-decoration: none;
    min-width: 0;
    margin-bottom: 20px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: #111;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    letter-spacing: -0.2px;
}

.logo-sub {
    font-size: 11px;
    color: #666;
    margin-top: -1px;
}

/* Card Style */
.login-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e5e3;
    padding: 36px 32px 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.card-title {
    font-size: 22px;
    font-weight: 600;
    color: #111;
    text-align: center;
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.card-subtitle {
    font-size: 14px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
}

/* Alerts */
.alert-box {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 13.5px;
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: opacity 0.5s ease;
}

.alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

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

.form-label {
    font-size: 13px;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
    display: block;
}

.form-control {
    width: 100%;
    padding: 10px 13px;
    border: 1px solid #e2e2e0;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    color: #111;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
}

.form-control:focus {
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(0,0,0,0.05);
}

/* Password Handling */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
    display: none;
}

.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 42px; /* Mencegah teks tertutup ikon */
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    font-size: 18px;
    z-index: 2;
    user-select: none;
}

.toggle-password:hover {
    color: #111;
}

/* Buttons */
.btn-submit {
    width: 100%;
    padding: 12px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}

.btn-submit:hover {
    background: #2a2a2a;
}

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

.btn-oauth {
    width: 100%;
    padding: 10px;
    border: 1px solid #e2e2e0;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: background 0.2s;
    margin-top: 12px;
}

.btn-oauth:hover {
    background: #f8f8f6;
    color: #000;
}

/* Footer Link & Lang Switch */
.card-footer-text {
    text-align: center;
    font-size: 13px;
    margin-top: 20px;
    color: #888;
}

.card-footer-text a {
    color: #f12424;
    font-weight: 600;
    text-decoration: none;
}

.card-footer-text a:hover {
    text-decoration: underline;
}

.lang-switch {
    text-align: center;
    margin-top: 15px;
    font-size: 12px;
}

.lang-switch a {
    text-decoration: none;
    color: #888;
    margin: 0 6px;
    transition: color 0.2s;
}

.lang-switch a:hover {
    color: #111;
}

.footer {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #999;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin: 0 auto;
}