/* ----------------------------------------------------
   Global Reset
----------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f4f6f8;
    color: #333;
    min-height: 100vh;      /* FIX for mobile */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;          /* small-screen safe */
}

/* ----------------------------------------------------
   Wrapper (Responsive Card)
----------------------------------------------------- */
.wrapper {
    position: relative;
    background: #fff;
    padding: clamp(1.5rem, 4vw, 2.5rem);  /* responsive */
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    width: 100%;
    max-width: 540px;
    border: 1px solid #e0e0e0;
    user-select: none;
}

.wrapper h2 {
    text-align: center;
    margin-bottom: 24px;
    font-size: clamp(1.4rem, 2.5vw, 1.65rem);
    color: #1a1a1a;
}

.wrapper p {
    font-size: clamp(0.9rem, 1.2vw, 0.95rem);
    color: #797979;
    margin-bottom: 2rem;
}

/* ----------------------------------------------------
   Labels & Inputs
----------------------------------------------------- */
.wrapper label {
    display: inline-block;
    height: 25px;
    color: #797979;
}

/* All input fields responsive */
.wrapper input {
    width: 100%;
    height: 50px;
    padding: 15px;
    outline: none;
    border: 1px solid #797979;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    margin-bottom: 15px;
}

.wrapper input:focus {
    border-color: #056dff;
}

.wrapper select {
    width: 50%;
    height: 50px;
    padding: 15px;
    outline: none;
    border: 1px solid #797979;
    border-radius: 4px;
    font-size: 1rem;
    background-color: #fff;
    margin-bottom: 15px;
}

.wrapper input:focus {
    border-color: #056dff;
}

/* ----------------------------------------------------
   Password Eye Icon
----------------------------------------------------- */
.wrapper #eye {
    position: absolute;
    right: 40px;
    cursor: pointer;
    color: #0051c3;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}
.wrapper #eye svg{
    margin:0 3px;
}
/* ----------------------------------------------------
   Buttons
----------------------------------------------------- */
.wrapper button {
    position: relative;
    width: 100%;
    height: 50px;
    padding: 15px;
    background-color: #056dff;
    border: none;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper #spinner{
    position: absolute;
    left: 1rem;
    width: 30px;
    display: none;
}

/* ----------------------------------------------------
   Notice Messages
----------------------------------------------------- */
.wrapper #notice-area,
.wrapper #notice-area-verify {
    min-height: 40px;        /* FIX for mobile overflow */
    font-size: 0.95rem;
    color: #be184b;
    display: block; 
    text-align: left;
    padding: 10px;
    background: #fff;
    font-weight: bold;
    line-height: 1.4;
    margin: 10px 0;
    word-break: break-word; /* Fix breaking on small screens */
}

/* ----------------------------------------------------
   Short Links
----------------------------------------------------- */
.wrapper .short-link {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
}

.wrapper .short-link a {
    color: #0051c3;
    text-decoration: none;
}

/* ----------------------------------------------------
   TOTP Field
----------------------------------------------------- */
#totp {
    display:none;
}
 
#totp input[type="text"] {
    text-align: center;
    letter-spacing: 6px;
}

/* ----------------------------------------------------
   Password Requirement
----------------------------------------------------- */
.wrapper #passwordRequirement {
    display: none;
    font-size: 13px;
    color: #000;
    margin-bottom: 15px;
    border-radius:4px;
   
    padding:5px;
    background: #e7f7ed; 
}

/* ----------------------------------------------------
   Google Login Button
----------------------------------------------------- */
.wrapper #googleLogin {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    padding: 15px;
    border: 1px solid #797979;
    border-radius: 4px;
    background-color: #fff;
    font-size: 15px;
    cursor: pointer;
    margin-bottom: 20px;
    transition: background 0.2s;
}

.wrapper #googleLogin:hover {
    background-color: #f7f8f8;
}

.wrapper #googleLogin img {
    width: 25px;
    height: 25px;
}

/* ----------------------------------------------------
   Divider
----------------------------------------------------- */
.wrapper .divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    margin: 20px 0;
}

.wrapper .divider::before,
.wrapper .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ccc;
}

.wrapper .divider:not(:empty)::before {
    margin-right: 0.75em;
}

.wrapper .divider:not(:empty)::after {
    margin-left: 0.75em;
}

 
/* ----------------------------------------------------
   Mobile Breakpoint
----------------------------------------------------- */
@media (max-width: 420px) {
    .wrapper {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .wrapper input,
    .wrapper button,
    .wrapper #googleLogin {
        height: 46px;
        font-size: 0.9rem;
    }

    .wrapper h2 {
        font-size: 1.35rem;
    }
}
