:root {
	--moe-shade-min3: #020003;
	--moe-shade-min2: #18002b;
	--moe-shade-min1: #2e0052;
	--moe: #440079;
	--moe-tint7: #f8efff;
	
	--kakki-o1 :#ff983d;
	--kakki-o2 :#ffb347;
	--kakki-o3 :#ffd480;
	--kakki-g1 :#a3d978;
	--kakki-g2 :#6cbf5a;
	--kakki-g3 :#49982a;
	--kakki-g4 :#2f7f33;
	--kakki-g5 :#1c5f20;
	--kakki-x1 :#f2e8cf;
	--kakki-x2 :#d9ca9b;
}

* {
    box-sizing: border-box;
    font-family: "Space Mono", monospace;
    transition: all 0.3s ease;
}

body {
    background-color: var(--moe-shade-min1);
    color: var(--moe-tint7);
    display: flex;
    align-items: center;
    justify-content: flex-start; 
    min-height: 100vh;
    margin: 0;
    padding: 20px 5vw; 
    position: relative;
    z-index: 1;
}

/* body::before { */
    /* content: ""; */
    /* position: fixed; */
    /* top: 0; */
    /* left: 0; */
    /* width: 100%; */
    /* height: 100%; */
    /* background-image: url('https://ik.imagekit.io/moearchive/web/bodybg/samenumbers01.png'); */
    /* background-size: cover; */
    /* background-position: center; */
    /* opacity: 0.9; */
    /* z-index: -1; */
    /* transition: opacity 1s ease-in-out; */
/* } */


.mylogo {
    position: absolute;
    right: 10px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.mylogo span {
    font-size: 9pt;
    right: 20pt;
    text-align: right;
    margin-right: 11pt;
}
.mylogo img {
    width: 35%;
}

.form-container {
    /* background-color: var(--moe-shade-min2); */
	backdrop-filter: blur(5px);
    background-color: #18002b66;
    padding: 30px;
    width: 100%;
    max-width: 400px;
    border: 5px solid var(--moe-tint5);
    box-shadow: 4px 4px 0px 0px var(--moe);
}

h1 {
    text-align: center;
    color: var(--moe-tint7);
    margin-top: 0;
    margin-bottom: 24px;
}

.input-group { margin-bottom: 20px; }
.input-group label { display: block; margin-bottom: 8px; color: var(--moe-tint7); font-weight: bold; }
.input-group input { width: 100%; padding: 10px; background-color: var(--moe-shade-min3); border: 2px solid var(--moe); color: white; font-size: 16px; }
.input-group input:focus { outline: none; border-color: var(--moe-tint7); }
.password-wrapper { position: relative; display: flex; align-items: center; }
.password-wrapper input { width: 100%; padding-right: 40px; }
.toggle-password { position: absolute; right: 10px; cursor: pointer; user-select: none; }
.button-group { display: flex; flex-direction: column; gap: 15px; margin-top: 25px; }
.btn-submit, .btn-link { padding: 12px; border: 2px solid var(--moe); cursor: pointer; font-size: 16px; font-weight: bold; text-align: center; }
.btn-submit { background-color: var(--moe); color: white; box-shadow: 4px 4px 0px 0px var(--moe-shade-min3); }
.btn-submit:hover { background-color: var(--moe-shade-max1); }
.btn-link { background-color: transparent; color: var(--moe-tint7); border: none; }
.btn-link:hover { text-decoration: underline; }

.forgot-password-link {
    color: var(--moe-tint7);
    text-align: center;
    font-size: 14px;
    margin-top: 10px;
    cursor: pointer;
}
.forgot-password-link:hover {
    text-decoration: underline;
}

.message-area { position: fixed; bottom: 20px; background-color: var(--moe); color: white; padding: 15px; text-align: center; width: 90%; max-width: 400px; visibility: hidden; opacity: 0; transition: visibility 0s, opacity 0.3s linear; }
.message-area.show { visibility: visible; opacity: 1; }
.validation-message { color: #ffb3b3; font-size: 0.8em; margin-top: 4px; display: block; }

/* File: css/style_modals.css */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: var(--moe-shade-min2, #18002b);
    padding: 30px;
    width: 90%;
    max-width: 450px;
    border: 2px solid var(--moe, #440079);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-box h2 {
    margin-top: 0;
    text-align: center;
    color: var(--moe-tint7, #f8efff);
}

.modal-box p {
    text-align: center;
    font-size: 1.1em;
}

.modal-box .button-group {
    flex-direction: row;
    justify-content: center;
}

/* Password Strength Meter */
.strength-meter {
    height: 8px;
    width: 100%;
    background-color: var(--moe-shade-min3, #020003);
    margin-top: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.strength-bar {
    height: 100%;
    width: 0;
    transition: width 0.3s, background-color 0.3s;
}

.strength-bar.lemah { width: 33%; background-color: #d32f2f; }
.strength-bar.sedang { width: 66%; background-color: #f57c00; }
.strength-bar.kuat { width: 100%; background-color: #388e3c; }

.strength-text {
    font-size: 0.8em;
    text-align: right;
    margin-top: 4px;
    font-style: italic;
    opacity: 0;
    transition: opacity 0.3s;
}

.strength-text.lemah { color: #d32f2f; opacity: 1; }
.strength-text.sedang { color: #f57c00; opacity: 1; }
.strength-text.kuat { color: #388e3c; opacity: 1; }
/* Media query untuk mobile */
@media (max-width: 768px) {
    body {
        /* Kembalikan ke tengah untuk mobile */
        justify-content: center; 
        padding: 20px;
    }
	.mylogo {
		position: fixed !important;
		width: 100% !important;
		margin: 0 auto !important;
		bottom: 20px !important;
		left: 0 !important;
		right: 0 !important;
		align-items: center;
	}
	.mylogo img {
		width: 60%;
	}
}

/* Tambahkan di akhir file style_main.css */

.btn-google {
    background-color: #ffffff;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 4px 4px 0px 0px var(--moe-shade-min3);
    border: 2px solid #e0e0e0;
}

.btn-google:hover {
    background-color: #f5f5f5;
    border-color: #bdbdbd;
}

.btn-google img {
    width: 18px;
    height: 18px;
}