* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    background: #fafafa;
    font-family: "Poppins", sans-serif;
}


.wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 130px;
}

.main-logo {
    width: 200px;
    max-height: 40px;
    margin-bottom: 24px;
    max-width: 200px;
}

.login-box {
    background: #ffffff;
    width: 380px;
    border-radius: 10px;
    padding: 32px 30px;
    text-align: center;
    border: 1px solid #ececec;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
}


.error-banner {
    display: none;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid #6e6e78;
    color: #b9352c;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}
.error-banner img {
    width: 18px;
    height: 18px;
}

.title {
    font-size: 18px;
    margin-bottom: 25px;
    font-weight: 700;
    color: #5e5e5e;
}

.label {
    display: block;
    text-align: left;
    font-size: 14px;
    margin-bottom: 6px;
    font-weight: 600;
}

.input {
    width: 100%;
    padding: 11px;
    border: 1px solid #b8b8b8;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.input:hover {
    width: 100%;
    padding: 11px;
    border: 1px solid #1d1d21;
    border-radius: 4px;
    margin-bottom: 18px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
}

.input:focus {
    border-color: #2563ff;
    box-shadow: 0 0 12px rgba(37, 99, 255, 0.6);
}

.password-wrap {
    position: relative;
}


.eye {
    position: absolute;
    width: 17px;
    height: 17px;
    right: 12px;
    top: 40%;
    transform: translateY(-50%);
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.2s;
}

.eye:hover {
    opacity: 0.65;
}

.btn:focus {
    outline: 2px solid #2563ff;
    outline-offset: 2px;
}

.input:focus {
    border-color: #2563ff;
    box-shadow: 0 0 12px rgba(37, 99, 255, 0.6);
    outline: none;
}


.remember {
    display: flex;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 18px;
    align-items: center;
    color: #6e6e78;
}

.login-btn {
    background: #90D092;
    border: none;
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    color: #261C0A;
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s;
}

.login-btn:hover {
    background: #fff878;
}

.divider {
    margin: 20px 0;
    position: relative;
    text-align: center;
    font-size: 14px;
    color: #6e6e78;
}

.divider::before,
.divider::after {
    content: "";
    position: absolute;
    height: 1px;
    width: 40%;
    background: #a5a5ad;
    top: 50%;
}

.divider::before { left: 0; }
.divider::after { right: 0; }

.btn.social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #c2c2c2;
    background: #fff;
    border-radius: 6px;
    width: 100%;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    color: #6e6e78;
}

.social-icon {
    width: 22px;
    height: 22px;
}

.link {
    display: flex;
    position: left;
    margin-top: 24px;
    font-size: 13px;
    color: #6e6e78;
}

.link:hover {
    text-decoration: underline;
}



.twofa-box {
    background: #ffffff;
    width: 380px;
    border-radius: 10px;
    padding: 55px 30px;
    text-align: center;
    border: 1px solid #ececec;
    box-shadow: 0 5px 25px rgba(0,0,0,0.05);
    margin-top: 65px;
}

.twofa-icon {
    width: 65px;
    height: 65px;
    margin-bottom: 18px;
}

.twofa-title {
    font-size: 18px;
    font-weight: 600;
    color: #5e5e5e;
    margin-bottom: 6px;
}

.twofa-text {
    font-size: 14px;
    color: #6e6e78;
    margin-bottom: 26px;
}

.twofa-label {
    display: block;
    text-align: left;
    width: 100%;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1d1d21;
}

.twofa-input {
    width: 100%;
    padding: 11px;
    border: 1px solid #c7c7c7;
    border-radius: 4px;
    font-size: 15px;
    outline: none;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 22px;
    transition: border-color .2s;
}

.twofa-input:hover {
    border-color: #261C0A;
}

.twofa-input:focus {
    border-color: #6d6d6d !important;
     border-color: #2563ff;
    box-shadow: 0 0 12px rgba(37, 99, 255, 0.6);
}


.twofa-btn {
    background: #90D092;
    border: none;
    width: 100%;
    padding: 11px;
    border-radius: 6px;
    color: #261C0A;
    font-size: 15px;
    cursor: pointer;
    transition: 0.25s;
    margin-top: 10px;
}

.twofa-btn:hover {
    background: #fff878;
}

.back-login {
    display: flex;
    position: relative;
    margin-top: 26px;
    font-size: 13px;
    color: #6e6e78;
}

.back-login:hover {
    text-decoration: underline;
}


.twofa-circle-wrap {
    position: absolute;
    top: -42px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 220px;
}

.twofa-circle {
    width: 95px;
    height: 95px;
    background: #ffffff;
    border-radius: 50%;
    border: 2px solid #aaaaaa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.twofa-circle img {
    width: 60px;
    height: 60px;
}

.loading-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.loading-content {
    position: relative;
    z-index: 10000;
    background: #ffffff;
    border-radius: 16px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.3);
    max-width: 400px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 30px;
    border: 5px solid #e0e0e0;
    border-top: 5px solid #90D092;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #5e5e5e;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
}

.twofa-error {
    display: none;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 1px solid #6e6e78;
    color: #b9352c;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 14px;
}

.twofa-error img {
    width: 18px;
    height: 18px;
}