/* ============================================
   Auth Pages Styles
   - Login, Signin Selection, Company Signup, Lab Signup
   ============================================ */

/* ----------------------------------------
   Shared Auth Styles
   ---------------------------------------- */
#login,
#signin,
#signin_company,
#signin_lab {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Auth Card (shared across login, signin_company, signin_lab) */
.auth__card {
    background-color: var(--color-static-white, #ffffff);
    border-radius: 16px;
    padding: 48px;
    width: 822px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
    box-sizing: border-box;
}

/* Auth Title */
.auth__title {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 48px;
    letter-spacing: -0.32px;
    color: var(--color-neutral-900, #303342);
    margin: 0;
}

/* Auth Form */
.auth__form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.auth__fields {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.auth__input-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Input Field */
.auth__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.auth__label {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.4;
    color: #1e1e1e;
    margin: 0;
}

.auth__input {
    width: 100%;
    background-color: var(--color-static-white, #ffffff);
    border: 1px solid #d9d9d9;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    color: var(--color-neutral-900, #303342);
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
    min-width: 120px;
}

.auth__input::placeholder {
    color: #b3b3b3;
}

.auth__input:focus {
    border-color: var(--color-primary-600, #4165ff);
}

/* Email row with button */
.auth__email-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    width: 100%;
}

.auth__email-row .auth__field {
    flex: 1 0 0;
    min-width: 0;
}

/* Verification code section */
.auth__verify-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.auth__verify-row {
    display: flex;
    gap: 12px;
    align-items: flex-end;
    width: 100%;
}

.auth__verify-row .auth__field {
    flex: 1 0 0;
    min-width: 0;
}

.auth__verify-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1.5;
    letter-spacing: -0.12px;
}

.auth__verify-timer {
    display: flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
}

.auth__verify-timer-label {
    color: var(--color-neutral-800, #484d5e);
}

.auth__verify-timer-value {
    color: #f13030;
}

.auth__verify-desc {
    color: var(--color-neutral-500, #bfc5d1);
    margin: 0;
}

.auth__verify-desc p {
    margin: 0;
}

/* Forgot password link */
.auth__forgot-link {
    display: flex;
    justify-content: center;
    width: 100%;
}

.auth__forgot-link a {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.14px;
    color: var(--color-primary-600, #4165ff);
    text-decoration: none;
    text-align: center;
}

.auth__forgot-link a:hover {
    text-decoration: underline;
}

/* Signup pages: forgot link is right-aligned */
#signin_company .auth__forgot-link,
#signin_lab .auth__forgot-link {
    justify-content: flex-end;
}

/* Primary Button (blue) */
.auth__btn-primary {
    width: 100%;
    background-color: var(--color-primary-600, #4165ff);
    border: none;
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    cursor: pointer;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.auth__btn-primary:hover {
    background-color: var(--color-primary-700, #2c48d9);
}

.auth__btn-primary span {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 23px;
    letter-spacing: -0.16px;
    color: var(--color-static-white, #ffffff);
    white-space: nowrap;
}

/* Dark Button (인증코드 전송 / 확인) */
.auth__btn-dark {
    background-color: var(--color-secondary-700, #102540);
    border: none;
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: background-color 0.2s ease;
    white-space: nowrap;
}

.auth__btn-dark:hover {
    background-color: var(--color-secondary-600, #1e4065);
}

.auth__btn-dark span {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 23px;
    letter-spacing: -0.16px;
    color: var(--color-static-white, #ffffff);
    white-space: nowrap;
}

/* Divider ("또는") */
.auth__divider {
    display: flex;
    align-items: center;
    gap: 16px;
    width: 100%;
    height: 21px;
}

.auth__divider-line {
    flex: 1 0 0;
    height: 1px;
    background-color: var(--color-neutral-300, #dde2eb);
}

.auth__divider-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.14px;
    color: var(--color-neutral-600, #949aac);
    white-space: nowrap;
}

/* Social Login Section */
.auth__social {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.auth__social-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

/* Social Button Base */
.auth__btn-social {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth__btn-social:hover {
    opacity: 0.85;
}

.auth__btn-social-icon {
    width: 20px;
    height: 20px;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}

.auth__btn-social-text {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    white-space: nowrap;
}

/* Google Button */
.auth__btn-social--google {
    background-color: var(--color-static-white, #ffffff);
    border: 1px solid var(--color-neutral-300, #dde2eb);
}

.auth__btn-social--google .auth__btn-social-text {
    color: var(--color-neutral-900, #303342);
}

/* Kakao Button */
.auth__btn-social--kakao {
    background-color: #fee500;
    border: 1px solid #fee500;
}

.auth__btn-social--kakao .auth__btn-social-text {
    color: #3c1e1e;
}

/* Bottom text ("아직 계정이 없으신가요? 회원가입") */
.auth__bottom-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    padding: 0 90px;
    box-sizing: border-box;
}

.auth__bottom-text p {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.14px;
    color: var(--color-neutral-700, #6c7286);
    text-align: center;
    margin: 0;
}

.auth__bottom-text a {
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.14px;
    color: var(--color-primary-600, #4165ff);
    text-decoration: none;
    text-align: center;
}

.auth__bottom-text a:hover {
    text-decoration: underline;
}

/* ----------------------------------------
   Login Page (#login)
   ---------------------------------------- */
#login {
    background-color: #f5f7fa;
    min-height: calc(100vh - 57px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 18px;
}

/* ----------------------------------------
   Signin Selection Page (#signin)
   ---------------------------------------- */
#signin {
    width: 100%;
    min-height: calc(100vh - 57px);
    display: flex;
    flex-direction: row;
    padding: 0;
}

.signin__option {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    transition: flex 0.3s ease;
}

.signin__option:hover {
    flex: 1.1;
}

.signin__option-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.signin__option-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    z-index: 1;
    transition: background-color 0.3s ease;
}

.signin__option:hover .signin__option-overlay {
    background-color: rgba(0, 0, 0, 0.3);
}

.signin__option-text {
    position: relative;
    z-index: 2;
    font-family: 'Noto Sans KR', sans-serif;
    font-weight: 700;
    font-size: 32px;
    line-height: 48px;
    letter-spacing: -0.32px;
    color: var(--color-static-white, #ffffff);
    text-align: center;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ----------------------------------------
   Company Signup Page (#signin_company)
   ---------------------------------------- */
#signin_company {
    background-color: #f5f7fa;
    min-height: calc(100vh - 57px);
    display: flex;
    justify-content: center;
    padding: 40px 18px;
}

/* State visibility for company signup */
#signin_company .auth__verify-section {
    display: none;
}

#signin_company.state--verify-sent .auth__verify-section,
#signin_company.state--verify-input .auth__verify-section,
#signin_company.state--verified .auth__verify-section {
    display: flex;
}

#signin_company.state--verify-sent .auth__btn-dark--send span,
#signin_company.state--verify-input .auth__btn-dark--send span {
    /* Button text changes to 인증코드 재전송 after first send */
}

#signin_company.state--verified .auth__input--email,
#signin_company.state--verified .auth__input--verify {
    background-color: var(--color-neutral-100, #f2f6fa);
    pointer-events: none;
}

#signin_company.state--verified .auth__btn-dark--send,
#signin_company.state--verified .auth__btn-dark--verify {
    opacity: 0.5;
    pointer-events: none;
}

/* ----------------------------------------
   Lab Signup Page (#signin_lab)
   ---------------------------------------- */
#signin_lab {
    background-color: #f5f7fa;
    min-height: calc(100vh - 57px);
    display: flex;
    justify-content: center;
    padding: 40px 18px;
}

/* State visibility for lab signup */
#signin_lab .auth__verify-section {
    display: none;
}

#signin_lab.state--verify-sent .auth__verify-section,
#signin_lab.state--verify-input .auth__verify-section,
#signin_lab.state--verified .auth__verify-section {
    display: flex;
}

#signin_lab.state--verified .auth__input--email,
#signin_lab.state--verified .auth__input--verify {
    background-color: var(--color-neutral-100, #f2f6fa);
    pointer-events: none;
}

#signin_lab.state--verified .auth__btn-dark--send,
#signin_lab.state--verified .auth__btn-dark--verify {
    opacity: 0.5;
    pointer-events: none;
}

/* ----------------------------------------
   Responsive (optional basic)
   ---------------------------------------- */
@media (max-width: 860px) {
    .auth__card {
        width: 100%;
        padding: 32px 20px;
    }
}

@media (max-width: 768px) {
    #signin {
        flex-direction: column;
    }

    .signin__option {
        min-height: 300px;
    }
}
