* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
  /* Hyundai ID Color Palette */
  --color-active-red: #e63312;
  --color-main-blue: #002c5f;
  --color-sand: #e4dcd3;
  --color-second-blue: #00aad2;
  --color-second-blue-hover: #10b5dc;
  --color-white: #ffffff;
  --color-main-black: #000000;
  --color-bg-gray: #f6f3f2;
  --color-bg-sand: #e4dcd3;
  --color-bg-white: #ffffff;
  --color-bg-normal-gray: #e5e5e5;
  --color-bg-black: #000000;
  --color-bg-icon: #b7b7b7;
  --color-input: #333333;
  --color-text-second: #666666;
  --color-text-black: #000000;
  --color-text-third: #b7b7b7;
  --color-text-white: #ffffff;
  --color-text-gold: #996449;
  --color-text-gray: #4d4d4d;
  --color-text-gray-light: #999999;
  --color-social-hover: #ad7b61;
  --color-button-disable: #777673;
  --color-button-hover: #103a71;
  --color-light-grey-hover: #f8f8f8;
  --color-light-grey-scroll-bar: #f1f1f1;

  /* Fonts */
  --font-family-head: HyundaiSansHead, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  --font-family-text: HyundaiSansText, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

html {
  font-family: sans-serif;
  line-height: 1.2;
  -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family-text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--color-text-black);
    background-color: var(--color-bg-white);
}

.h2 {
    font-size: 42px;
    line-height: 48px;
    font-family: var(--font-family-head);
    font-weight: 500;
}

.signin-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Panel with Background */
.signin-left-panel {
    flex: 2;
    min-width: 0;
    background: var(--color-bg-black);
    background-image: url('images/bg_hyundai.73960143.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 48px;
    color: var(--color-text-white);
    overflow: hidden;
}

.signin-left-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.left-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.hyundai-logo-white {
    margin-bottom: 48px;
}

.logo-svg-white {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.welcome-title {
    font-size: 48px;
    font-weight: 300;
    line-height: 50px;
    margin-bottom: 24px;
    color: var(--color-text-white);
    letter-spacing: -0.02em;
    font-family: var(--font-family-head);
}

.welcome-description {
    font-size: 16px;
    line-height: 24px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    font-family: var(--font-family-text);
}


/* Right Panel with Form */
.signin-right-panel {
    flex: 1;
    min-width: 320px;
    max-width: 600px;
    background: var(--color-bg-white);
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    width: 100%;
}

.signin-form-container {
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 100%;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

.hyundai-id-logo {
    margin-bottom: 40px;
    align-self: center;
}

.hyundai-id-logo-img {
    height: 25px;
    width: auto;
    display: block;
}

.auth-title {
    font-size: 42px;
    font-weight: 500;
    line-height: 48px;
    color: var(--color-text-black);
    margin-bottom: 55px;
    font-family: var(--font-family-head);
    align-self: center;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 32px;
    width: 100%;
    justify-content: center;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 24px;
    font-size: 18px;
    font-weight: 300;
    line-height: 20px;
    color: var(--color-text-second);
    cursor: pointer;
    position: relative;
    font-family: var(--font-family-text);
    transition: color 0.3s ease;
}

.tab-button:hover {
    color: var(--color-text-black);
    background-color: var(--color-light-grey-hover);
}

.tab-button.active {
    color: var(--color-main-blue);
    font-weight: 400;
}

.tab-button.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--color-main-blue);
}

.auth-form {
    margin-bottom: 24px;
    width: 100%;
    align-self: stretch;
}

.input-group {
    margin-bottom: 24px;
    width: 100%;
}

.auth-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 14px;
    font-weight: 400;
    line-height: 16px;
    border: 1px solid var(--color-bg-normal-gray);
    border-radius: 0;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    font-family: var(--font-family-head);
    outline: none;
    color: var(--color-input);
    background-color: var(--color-bg-white);
    box-sizing: border-box;
}

.auth-input::placeholder {
    color: var(--color-text-gray-light);
    font-weight: 400;
}

.auth-input:hover {
    border-color: var(--color-text-third);
    background-color: var(--color-light-grey-hover);
}

.auth-input:focus {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
    background-color: var(--color-bg-white);
}

.auth-input.input-invalid {
    border-color: var(--color-active-red);
}

.error-text {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 400;
    color: var(--color-active-red);
    font-family: var(--font-family-text);
}

.continue-button {
    width: 100%;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 400;
    line-height: 22px;
    color: var(--color-text-white);
    background-color: var(--color-main-blue);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-family: var(--font-family-head);
    text-align: center;
    box-sizing: border-box;
}

.continue-button:hover {
    background-color: var(--color-button-hover);
}

.continue-button:focus {
    outline: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.continue-button:disabled {
    background-color: var(--color-button-disable);
    cursor: not-allowed;
}

.registration-link-wrapper {
    text-align: center;
    margin-bottom: 40px;
    align-self: stretch;
}

.registration-link {
    color: var(--color-main-blue);
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    line-height: 100%;
    transition: color 0.3s ease;
    font-family: var(--font-family-head);
}

.registration-link:hover {
    color: var(--color-button-hover);
    text-decoration: underline;
}

.social-login {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
    align-self: stretch;
}

.social-text {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text-second);
    margin-bottom: 16px;
    font-family: var(--font-family-text);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.social-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--color-bg-gray);
    border: 1px solid var(--color-bg-normal-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.social-icon:hover {
    background-color: var(--color-light-grey-hover);
    border-color: var(--color-social-hover);
}

.ya-letter {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text-black);
    font-family: Arial, sans-serif;
}

.signin-footer {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--color-bg-normal-gray);
    text-align: center;
    width: 100%;
    align-self: stretch;
}

.footer-link {
    display: block;
    color: var(--color-text-second);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    margin-bottom: 8px;
    transition: color 0.3s ease;
    font-family: var(--font-family-text);
}

.footer-link:hover {
    color: var(--color-text-black);
}

.footer-links-row {
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    column-gap: 24px;
}

.back-to-giveaway {
    display: block;
    color: var(--color-main-blue);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 100%;
    margin-top: 12px;
    transition: color 0.3s ease;
    font-family: var(--font-family-text);
}

.back-to-giveaway:hover {
    color: var(--color-button-hover);
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .signin-left-panel {
        display: none;
    }

    .signin-right-panel {
        width: 100%;
        max-width: 100%;
        flex: 1 0 100%;
    }
}

@media (max-width: 759px) {
    .signin-form-container {
        padding: 32px 24px;
    }

    .auth-title {
        font-size: 30px;
        line-height: 36px;
    }

    .welcome-title {
        font-size: 38px;
        line-height: 40px;
    }

    .tab-button {
        font-size: 16px;
        padding: 10px 20px;
    }
}

@media (max-width: 375px) {
    .signin-form-container {
        padding: 24px 16px;
    }

    .auth-title {
        font-size: 26px;
        line-height: 32px;
        margin-bottom: 40px;
    }

    .welcome-title {
        font-size: 35px;
        line-height: 40px;
    }

    .tab-button {
        font-size: 14px;
        padding: 10px 16px;
    }

    .footer-links-row {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }

    .footer-link {
        font-size: 13px;
    }
}

@media (max-width: 320px) {
    .signin-form-container {
        padding: 20px 12px;
    }

    .auth-title {
        font-size: 24px;
        line-height: 28px;
    }

    .tab-button {
        font-size: 13px;
        padding: 8px 12px;
    }

    .auth-input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .continue-button {
        padding: 12px 20px;
        font-size: 15px;
    }
}
