/* Authentication Screens - Styling for New Web Design */

.yc-auth-shell {
    margin: 60px auto;
    max-width: 490px;
    padding: 0 16px;
}

.yc-auth-card {
    background: #fff;
    border: 1px solid rgba(31, 51, 66, 0.08);
    border-radius: 24px;
    box-shadow: 0 12px 42px rgba(31, 51, 66, 0.08);
    padding: 36px 30px;
}

.yc-auth-header {
    margin-bottom: 28px;
    text-align: center;
}

.yc-auth-header h1 {
    color: #1f3342;
    font-size: 28px;
    font-weight: 750;
    margin: 0;
}

.yc-auth-header p {
    color: #6b7785;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 0;
}

/* Form Styles matching the new portal design */
.yc-auth-field {
    margin-bottom: 20px;
}

.yc-auth-field label {
    color: #536471;
    display: block;
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 7px;
}

.yc-auth-input {
    background: #fbfaf8;
    border: 1px solid rgba(31, 51, 66, 0.12);
    border-radius: 14px;
    color: #1f3342;
    font-size: 14px;
    height: 46px;
    outline: 0;
    padding: 0 16px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100%;
}

.yc-auth-input:focus {
    border-color: rgba(255, 100, 34, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 100, 34, 0.11);
}

.yc-auth-input.is-invalid {
    border-color: #d9422f;
    background-color: #fff9f8;
}

.yc-auth-input.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(217, 66, 47, 0.11);
}

.yc-invalid-feedback {
    color: #d9422f;
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

/* Checkbox and links alignment */
.yc-auth-meta {
    align-items: center;
    display: flex;
    font-size: 13px;
    justify-content: space-between;
    margin: 20px 0;
}

.yc-auth-checkbox {
    align-items: center;
    cursor: pointer;
    display: inline-flex;
    gap: 8px;
    margin: 0;
    user-select: none;
}

.yc-auth-checkbox input {
    accent-color: #ff6422;
    height: 16px;
    width: 16px;
}

.yc-auth-link {
    color: #ff6422;
    font-weight: 650;
    text-decoration: none;
}

.yc-auth-link:hover {
    text-decoration: underline;
}

/* Auth Buttons */
.yc-auth-btn {
    align-items: center;
    background: linear-gradient(135deg, #ff7a2f 0%, #f15a24 100%);
    border: 0;
    border-radius: 14px;
    box-shadow: 0 8px 20px rgba(241, 90, 36, 0.22);
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    height: 48px;
    justify-content: center;
    padding: 0 24px;
    transition: opacity 0.15s ease, transform 0.15s ease;
    width: 100%;
}

.yc-auth-btn:hover {
    opacity: 0.95;
}

.yc-auth-btn:active {
    transform: scale(0.99);
}

.yc-auth-footer {
    color: #536471;
    font-size: 13px;
    margin-top: 24px;
    text-align: center;
}

/* Turnstile support */
.yc-auth-turnstile {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

/* Social Buttons */
.yc-auth-social {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.yc-auth-separator {
    align-items: center;
    color: #8c9ba5;
    display: flex;
    font-size: 12px;
    font-weight: 600;
    gap: 16px;
    margin: 24px 0;
}

.yc-auth-separator::before,
.yc-auth-separator::after {
    background: rgba(31, 51, 66, 0.08);
    content: "";
    flex: 1;
    height: 1px;
}

.yc-social-btn {
    align-items: center;
    border: 1px solid rgba(31, 51, 66, 0.12);
    border-radius: 14px;
    color: #1f3342;
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    height: 46px;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    width: 100%;
}

.yc-social-btn.is-facebook {
    background: #fff;
    border-color: rgba(24, 119, 242, 0.2);
    color: #1877f2;
}

.yc-social-btn.is-facebook:hover {
    background: #f0f7ff;
}

.yc-social-btn.is-google {
    background: #fff;
    border-color: rgba(66, 133, 244, 0.2);
    color: #4285f4;
}

.yc-social-btn.is-google:hover {
    background: #f4f8ff;
}

.yc-social-btn.is-twitter {
    background: #fff;
    border-color: rgba(29, 161, 242, 0.2);
    color: #1da1f2;
}

.yc-social-btn.is-twitter:hover {
    background: #f5fbff;
}

.yc-social-btn i {
    font-size: 16px;
}

/* Dark Mode Overrides */
html.yc-dark-mode body .yc-auth-card {
    background: linear-gradient(180deg, rgba(31, 45, 59, 0.98), rgba(22, 33, 45, 0.98));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
}

html.yc-dark-mode body .yc-auth-header h1 {
    color: #fff7ef;
}

html.yc-dark-mode body .yc-auth-header p,
html.yc-dark-mode body .yc-auth-field label,
html.yc-dark-mode body .yc-auth-footer {
    color: #b8c2cc;
}

html.yc-dark-mode body .yc-auth-input {
    background: #101822;
    border-color: rgba(255, 255, 255, 0.09);
    color: #fff7ef;
}

html.yc-dark-mode body .yc-auth-input:focus {
    border-color: rgba(255, 100, 34, 0.65);
}

html.yc-dark-mode body .yc-auth-separator::before,
html.yc-dark-mode body .yc-auth-separator::after {
    background: rgba(255, 255, 255, 0.08);
}

html.yc-dark-mode body .yc-social-btn {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    color: #fff7ef;
}

html.yc-dark-mode body .yc-social-btn.is-facebook {
    border-color: rgba(24, 119, 242, 0.35);
    color: #1877f2;
}

html.yc-dark-mode body .yc-social-btn.is-facebook:hover {
    background: rgba(24, 119, 242, 0.08);
}

html.yc-dark-mode body .yc-social-btn.is-google {
    border-color: rgba(66, 133, 244, 0.35);
    color: #4285f4;
}

html.yc-dark-mode body .yc-social-btn.is-google:hover {
    background: rgba(66, 133, 244, 0.08);
}

html.yc-dark-mode body .yc-social-btn.is-twitter {
    border-color: rgba(29, 161, 242, 0.35);
    color: #1da1f2;
}

html.yc-dark-mode body .yc-social-btn.is-twitter:hover {
    background: rgba(29, 161, 242, 0.08);
}
