:root {
    --pink: #e84393;
    --red: #e84343;
    --bg-image: url('../admin/photo/Login.jpeg');
}

/* 🎨 Styling khusus swal */
.swal-custom-popup {
    border-color: var(--pink);
    box-shadow: 0 0 0 .2rem rgba(232, 67, 147, .25);
    font-size: 1.4rem;
    /* dasar lebih besar */
    border-radius: 1.2rem;
    padding: 3rem 2rem;
}

.swal-custom-title {
    font-size: 3rem !important;
    font-weight: bold;
    color: var(--pink);
    /* sesuai tema */
    margin-bottom: 1rem;
}

.swal-custom-text {
    font-size: 1.8rem;
    color: #555;
}

.swal-custom-btn {
    min-width: 12rem;
    font-size: 1.6rem !important;
    padding: 1rem 2.5rem;
    border-radius: 5rem;
    background-color: var(--pink) !important;
    color: #fff !important;
    transition: 0.3s;
}

.swal-custom-btn-cancel {
    min-width: 12rem;
    font-size: 1.6rem !important;
    padding: 1rem 2.5rem;
    border-radius: 5rem;
    background-color: var(--red) !important;
    color: #fff !important;
}

.swal-custom-btn:hover,
.swal-custom-btn-cancel:hover {
    background-color: #333 !important;
}

body {
    min-height: 100vh;
    background: linear-gradient(rgba(232, 67, 147, 0.16), rgba(255, 255, 255, 0.88)), var(--bg-image) no-repeat center center fixed;
    background-size: cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 7rem;
    padding-bottom: 5rem;
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    outline: none;
    border: none;
    text-decoration: none;
    transition: .2s linear;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
    overflow-x: auto;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.92);
    padding: 2rem 9%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    box-shadow: 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

header .logo {
    font-size: 3rem;
    color: #333;
    font-weight: bolder;
}

header .logo span {
    color: var(--pink);
}

header .navbar {
    display: flex;
    gap: 1.5rem;
}

header .navbar a {
    font-size: 2rem;
    color: #555;
    padding: 0 1.5rem;
}

header .navbar a:hover {
    color: var(--pink);
}

header .icons {
    display: flex;
    align-items: center;
}

header .icons a {
    font-size: 2.5rem;
    color: #333;
    margin-left: 1.5rem;
}

header .icons a:hover {
    color: var(--pink);
}

header #toggler {
    display: none;
}

header .fa-bars {
    font-size: 3rem;
    color: #333;
    border-radius: .5rem;
    padding: .5rem 1.5rem;
    cursor: pointer;
    border: .1rem solid rgba(0, 0, 0, 0.2);
    display: none;
}

form label {
    font-size: 1.55rem;
    color: #333;
    font-weight: 600;
}

.credit {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding: 1.5rem;
    font-size: 2rem;
    color: #333;
    border-top: 0.1rem solid rgba(0, 0, 0, 0.09);
    background: rgba(255, 255, 255, 0.86);
    z-index: 999;
}

.credit span {
    color: var(--pink);
}

.register-container {
    max-width: 800px;
    width: 100%;
}

.register-box {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 18px;
    box-shadow: 0 2px 24px 0 rgba(232, 67, 147, 0.12);
    padding: 2.5rem 2rem;
    margin-bottom: 8rem;
}

.register-box h1 {
    color: var(--pink);
    font-size: 2.8rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.register-box .form-control {
    font-size: 1.7rem;
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid #eee;
    background: #f9f9f9;
}

.register-box .form-control:focus {
    border-color: var(--pink);
    box-shadow: 0 0 0 0.1rem rgba(232, 67, 147, 0.11);
    background: #fff;
}

.register-box .btn {
    display: inline-block;
    margin-top: 1rem;
    border-radius: 5rem;
    background: #333;
    color: #fff;
    padding: 0.9rem 3.5rem;
    cursor: pointer;
    font-size: 1.7rem;
    border: none;
}

.register-box .btn:hover {
    background: var(--pink);
    color: #333;
}

.register-box .form-check-input {
    width: 1.5rem;
    height: 1.5rem;
}

.register-box .form-check-label {
    font-size: 1.45rem;
}

.register-box #preview {
    display: none;
    max-width: 160px;
    border-radius: 12px;
    margin-top: 1rem;
}

.register-box .alert {
    font-size: 1.5rem;
}

@media (max-width: 911px) {
    html {
        font-size: 55%;
    }

    header {
        padding: 2rem 3%;
    }

    .register-container {
        max-width: 95vw;
    }
}

@media (max-width: 768px) {
    header .fa-bars {
        display: block;
    }

    header .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-top: .1rem solid rgba(0, 0, 0, 0.1);
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: clip-path .3s ease;
    }

    header #toggler:checked~.navbar {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    }

    header .navbar a {
        margin: 1.5rem 0;
        padding: 1.5rem;
        background: #fff;
        border: 1rem solid rgba(0, 0, 0, 0.1);
        display: block;
        width: 100%;
    }

    .register-container {
        max-width: 99vw;
        padding: 0 1rem;
    }

    .register-box {
        padding: 2.5rem 1.2rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 50%;
    }

    .register-box h1 {
        font-size: 2rem;
    }
}