:root {
    --country-width: 90px;
    --field-height: 65px;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins';
}
html, body {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    min-height: 100svh; /* mobile-safe */
    background: url('/assets/img/ham-login.png') no-repeat center / cover;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Poppins', sans-serif;
}

 
.login-wrapper {
    backdrop-filter: blur(3px);
    padding: 40px;
}

.login-card {
    background-color: #FBFBFB;
    width: 100%;
    max-width: 920px;   /* desktop size */
    padding: 30px;
    text-align: center;
    border-radius: 28px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}


.logo {
    max-width: 229px; 
    border-radius: 50%;
    /*background: #e50914;*/
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo img {
    width: 100%;
}

.form-group {
    margin-bottom: 15px;
    text-align: left;
}

label {
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
    display: block;
}


.mobile-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--field-height);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.country-box {
    width: var(--country-width);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
}

.country-box img {
    width: 22px;
}
.mobile-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 16px;
    background: transparent;
}

/* Placeholder visible only when label hidden */
.mobile-input:focus::placeholder {
    color: transparent;
}

/* Floating label */
.floating-label {
    position: absolute;
    left: calc(var(--country-width) + 12px);
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 6px;
    font-size: 14px;
    color: #9ca3af;
    pointer-events: none;
    opacity: 0;
    transition: 0.2s ease;
}

.mobile-input:focus + .floating-label,
.mobile-input:not(:placeholder-shown) + .floating-label {
    top: -6px;
    font-size: 12px;
    opacity: 1;
}

/* Focus border */
.mobile-input-wrapper:focus-within {
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

.mobile-field {
    max-width: 480px;
    margin: 14px auto;
}

/* Custom field to admin Login */
 
.custom-form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    height: var(--field-height);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.small-custom-box {
    width: var(--country-width);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-right: 1px solid #e5e7eb;
    font-size: 14px;
}

.small-custom-box img {
    width: 22px;
}
.custom-form-input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    padding: 0 16px;
    font-size: 16px;
    background: transparent;
}

/* Placeholder visible only when label hidden */
.custom-form-input:focus::placeholder {
    color: transparent;
} 
.custom-form-input:focus + .floating-label,
.custom-form-input:not(:placeholder-shown) + .floating-label {
    top: -6px;
    font-size: 12px;
    opacity: 1;
}

/* Focus border */
.custom-form-input-wrapper:focus-within {
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

.custom-form-field {
    max-width: 480px;
    margin: 14px auto;
}

/* End Custom field to admin Login */



.captcha-wrapper {
    max-width: 480px;
    margin: 14px auto;
}

.captcha-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 6px;
    text-align: left;
}

.captcha-box {
    display: flex;
    align-items: center;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
    margin-bottom: 14px;
}

.captcha-question {
    flex: 1;
    text-align: left; 
    font-size: 20px;
    font-weight: 600;
    color: #C62F38;
    float: left;
}

.reload-btn {
    width: 42px;
    height: 42px;
    background: #ff0000;
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: url('/assets/img/reload.png') no-repeat center center/cover;
}

.reload-btn.spin {
    animation: spin 0.4s linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.answer-input {
    height: 52px;
    border-radius: 12px;
    font-size: 16px;

    border: 1px solid #e5e7eb;
    border-color: #e5e7eb;
}

.form-control:focus {
    border-color: #9ca3af;
    box-shadow: 0 0 0 2px rgba(37,99,235,.15);
}

.submit-btn {
    background: #FE0809;
    border: none;
    height: 56px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 400;
}

.submit-btn:hover {
    background: #e60000;
}
 


/* Responsive */
@media (max-width: 576px) {
 
    .login-card {
        padding: 10px;
        border-radius: 10px;
        max-width: 800px;
    }
    .logo img {
        max-width: 120px;
    } 

    :root {
        --country-width: 70px;
        --field-height: 56px;
    }

    .mobile-field {
        max-width: 100%;
    }

    .mobile-input {
        font-size: 14px;
    }

    .floating-label {
        font-size: 12px;
    }

    input::placeholder {
        font-size: 12px;
        font-weight: 300;
    }
    .captcha-label{       
        font-size: 10px;
    }

    .custom-form-field {
        max-width: 100%;
    }

    .custom-form-input {
        font-size: 14px;
    }
}

.hidden {
    display: none;
}