/* Reset dasar */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #7ad1cd;
    min-height: 100vh;    
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding-top: 40px;    
}


/* Wrapper utama */
.login-wrapper {
    width: 100%;
    padding: 20px;
    
}

/* Kartu Login */
.login-card {
    background-color: #ffffff;
    width: 100%;
    max-width: 600px; 
    margin: 0 auto;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Styling Logo */
.logo-container {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    max-width: 150px; 
    height: auto;
    display: block;
    margin: 0 auto;
}

/* Judul */
h2 {
    text-align: center;
    margin-top: 10px;  
    margin-bottom: 30px;
    color: #000000;
    font-weight: 600;
}


/* Styling Form */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #007bff; 
}


.password-container {
    position: relative;
    width: 100%;
}

.password-container input {
    padding-right: 40px; 
}

/* Ikon Mata */
.password-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
}

.password-container i:hover {
    color: #333;
}

/* Tombol Login */
.btn-login {
    width: 100%;
    padding: 12px;
    background-color: #132859; 
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Tombol Login */
.btn-register {
    width: 100%;
    padding: 12px;
    background-color: #132859; 
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-login:hover {
    background-color: #0056b3;
}

.btn-register:hover {
    background-color: #0056b3;
}

/* ===============================
   ROLE CARD (REGISTER)
=============================== */

.role-card-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.role-card {
    flex: 1;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    padding: 16px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: #ffffff;
}

.role-card i {
    font-size: 26px;
    margin-bottom: 8px;
    color: #0d6efd;
}

.role-card span {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #212529;
}

.role-card input {
    display: none;
}

.role-card:hover {
    border-color: #0d6efd;
    background: #f8faff;
}

/* SELECTED STATE */
.role-card:has(input:checked) {
    border-color: #0d6efd;
    background: #e7f1ff;
}

.role-card:has(input:checked) i,
.role-card:has(input:checked) span {
    color: #0d6efd;
    font-weight: 700;
}
/* ===============================
   ALERT / NOTIFICATION
=============================== */

.alert {
    padding: 12px 15px;
    margin-bottom: 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background-color: #fdecea;
    color: #b02a37;
    border: 1px solid #f5c2c7;
}



@media (max-width: 480px) {
    .login-card {
        padding: 25px;
        box-shadow: none; 
        background-color: #ffffff; 
    }
    
    body {
        background-color: #ffffff; 
    }

    .login-card {
        border: 1px solid #eee;
        background: #ffffff;
    }
}

/* =========================
   RESET & GLOBAL
========================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
   
    background-color: #7ad1cd;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* =========================
   LOGIN WRAPPER & CARD
========================= */

.register-title {
    color: #132859;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.register-subtitle {
    color: #132859;
    opacity: 0.7;
    margin-bottom: 32px;
    font-size: 15px;
}

/* =========================
   REGISTER ROLE (HORIZONTAL)
========================= */
.register-role-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin-top: 20px;
}

.register-role-card {
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    padding: 25px 15px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    
    /* Style Default */
    background: #ffffff;
    border: 2px solid #a1ffe9; 
}

/* Hover Effect */
.register-role-card:hover {
    transform: translateY(-5px);
    background: #a1ffe9; 
    border-color: #39b294; 
    box-shadow: 0 5px 15px rgba(57, 178, 148, 0.2);
}

/* Icon Container */
.role-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #39b294; 
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.register-role-card:hover .role-icon {
    background: #132859; 
    transform: scale(1.1);
}


.role-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.role-text strong {
    display: block;
    color: #132859; 
    font-size: 18px;
    font-weight: 700;
}

.role-text span {
    font-size: 13px;
    color: #41ae95; 
    line-height: 1.4;
}

.register-role-card:hover .role-text span {
    color: #132859;
}

/* =========================
   RESPONSIVE (MOBILE)
========================= */
@media (max-width: 768px) {
    .register-role-wrapper {

        grid-template-columns: 1fr; 
    }

    .register-role-card {
        flex-direction: row; 
        justify-content: flex-start;
        text-align: left;
        gap: 15px;
    }

    .role-icon {
        margin-bottom: 0;
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

/* =========================
   REGISTER FORM STYLING
========================= */
.register-heading {
    color: #132859;
    margin-bottom: 25px;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    border-bottom: 3px solid #39b294;
    display: inline-block;
    padding-bottom: 5px;
}

.register-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.register-label {
    font-size: 14px;
    color: #132859;
    font-weight: 600;
    margin-bottom: 5px;
    display: block;
}

.register-input,
.register-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #f9f9f9;
    transition: all 0.3s ease;
    outline: none;
    color: #333;
}

.register-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Input Focus State using Palette */
.register-input:focus,
.register-textarea:focus {
    border-color: #39b294; /* Teal */
    background: #ffffff;
    box-shadow: 0 0 0 4px #a1ffe9; /* Mint Glow */
}

/* Button Styling */
.register-btn {
    margin-top: 10px;
    padding: 14px;
    background: #132859; /* Navy */
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.register-btn:hover {
    background: #39b294; /* Teal on Hover */
}

/* =========================
   MODAL (POP-UP) S&K
========================= */
.register-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(19, 40, 89, 0.9); /* Navy Transparan */
    z-index: 9999;
    display: flex; /* Flex untuk centering */
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.register-modal-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.register-modal-card {
    background: #fff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    position: relative;
    transform: scale(1);
    transition: transform 0.3s ease;
}

.register-modal-title {
    color: #132859;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 2px solid #a1ffe9;
    padding-bottom: 10px;
}

.register-modal-body {
    height: 200px;
    overflow-y: auto;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 20px;
    padding-right: 10px;
    border: 1px solid #eee;
    padding: 10px;
    background: #fdfdfd;
}

/* Scrollbar Custom */
.register-modal-body::-webkit-scrollbar {
    width: 6px;
}
.register-modal-body::-webkit-scrollbar-thumb {
    background-color: #41ae95;
    border-radius: 3px;
}

.register-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.register-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #132859;
    cursor: pointer;
}

.register-modal-btn {
    width: 100%;
    padding: 12px;
    background: #39b294;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.register-modal-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.register-modal-btn:not(:disabled):hover {
    background: #132859;
}

.register-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
}
