* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body {
    background-color: #f3f4f6;
    color: #1f2937;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 16px;
}

/* HEADER */
.all_header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
    text-align: center;
}

.cap {
    width: 54px;
    height: 54px;
    background-color: #e0e7ff;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(77, 56, 196, 0.15);
}

.cap_image {
    width: 32px;
    height: 32px;
}

.headline h1 {
    color: #4d38c4;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.headline p {
    color: #6b7280;
    font-size: 13px;
    margin-top: 2px;
}

/* MAIN CARD */
.main {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px 24px;
}

/* ROLE & INPUTS */
.role_div,
.email_div,
.password_div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.role_div label,
.email_div label,
.password_div label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.role_div select,
.email_div input,
.password_wrapper input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #1f2937;
    outline: none;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.role_div select:focus,
.email_div input:focus,
.password_wrapper input:focus {
    border-color: #4d38c4;
    box-shadow: 0 0 0 3px rgba(77, 56, 196, 0.15);
}

.password_header_row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.forgot_link {
    font-size: 12px;
    color: #4d38c4;
    text-decoration: none;
    font-weight: 500;
}

.forgot_link:hover {
    text-decoration: underline;
}

.password_wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password_wrapper input {
    padding-right: 42px;
}

.toggle_btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
}

#eyeIcon {
    width: 18px;
    height: 18px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.toggle_btn:hover #eyeIcon {
    opacity: 1;
}

/* REMEMBER ME */
.remember_check {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #4b5563;
    cursor: pointer;
}

.remember_check input {
    cursor: pointer;
    accent-color: #4d38c4;
}

/* SIGN IN BUTTON */
.sign_in_button button {
    width: 100%;
    padding: 12px;
    background: #4d38c4;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.sign_in_button button:hover {
    background: #3b2aa1;
    transform: translateY(-1px);
}

.sign_in_button button:active {
    transform: translateY(0);
}

/* FOOTER */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.contract {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.contract .DHA {
    color: #4b5563;
}

.contract .CA {
    color: #4d38c4;
    text-decoration: none;
    font-weight: 600;
}

.contract .CA:hover {
    text-decoration: underline;
}

.policy {
    display: flex;
    gap: 8px;
    color: #9ca3af;
    font-size: 12px;
}

.policy a {
    color: #9ca3af;
    text-decoration: none;
}

.policy a:hover {
    color: #6b7280;
    text-decoration: underline;
}

/* ========================================================
   RESPONSIVE DESIGN (Desktop, Laptop, Tablet, Mobile)
   ======================================================== */
@media (min-width: 1600px) {
    .main {
        max-width: 460px;
    }

    .headline h1 {
        font-size: 28px;
    }

    form {
        padding: 34px 28px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 20px 12px;
        justify-content: flex-start;
        padding-top: 30px;
    }

    .cap {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
    }

    .headline h1 {
        font-size: 20px;
    }

    .headline p {
        font-size: 12px;
    }

    .main {
        border-radius: 12px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    }

    form {
        padding: 20px 16px;
        gap: 14px;
    }

    .sign_in_button button {
        padding: 13px;
        font-size: 15px;
    }

    .contract {
        flex-direction: column;
        gap: 2px;
    }
}

@media (max-width: 360px) {
    .headline h1 {
        font-size: 18px;
    }

    form {
        padding: 16px 12px;
    }

    .policy {
        flex-wrap: wrap;
        justify-content: center;
    }
}