/* Auth Pages (Login & Register) */
.c-auth {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-bg);
}

.c-auth__side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.c-auth__image-side {
    flex: 1.2;
    background-image: url('../../img/cover.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 4rem;
}

.c-auth__image-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.c-auth__image-content {
    position: relative;
    z-index: 1;
    color: white;
}

.c-auth__image-title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.c-auth__image-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    max-width: 400px;
}

.c-auth__box {
    width: 100%;
    max-width: 420px;
}

.c-auth__logo {
    margin-bottom: 2.5rem;
}

.c-auth__logo img {
    height: 40px;
}

.c-auth__header {
    margin-bottom: 2rem;
}

.c-auth__title {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.c-auth__subtitle {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
}

.c-auth__form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.c-auth__group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.c-auth__label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.c-auth__input-wrap {
    position: relative;
}

.c-auth__input {
    width: 100%;
    background: #1a1a1a;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    padding: 0.9rem 1.1rem;
    color: #ffffff;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    -webkit-appearance: none;
}

.c-auth__input:focus {
    border-color: var(--color-primary);
    background: #222222;
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.15);
}

/* Dropdown specific */
select.c-auth__input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3rem;
    cursor: pointer;
}

select.c-auth__input option {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 1rem;
}

.c-auth__input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.5;
}

.c-auth__submit {
    margin-top: 1rem;
    height: 52px;
    font-size: 1rem;
    width: 100%;
}

/* Core Button Styles for Auth */
.c-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    gap: 0.5rem;
}

.c-btn--primary {
    background-color: var(--color-primary);
    color: white;
}

.c-btn--primary:hover {
    background-color: #1a8cd8; /* Slightly darker brand blue */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(29, 155, 240, 0.3);
}

.c-btn--primary:active {
    transform: translateY(0);
}

/* Verification Code Inputs */
.c-auth__code-group {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin: 1.5rem 0;
}

.c-auth__code-input {
    width: 100%;
    height: 60px;
    background: #1a1a1a;
    border: 2px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: all 0.2s;
}

.c-auth__code-input:focus {
    border-color: var(--color-primary);
    background: #222222;
    outline: none;
    box-shadow: 0 0 0 4px rgba(29, 155, 240, 0.15);
}

/* Mobile Selection Modal */
.c-selection-modal {
    position: fixed;
    inset: 0;
    background: #0f0f0f;
    z-index: 9999;
    display: none;
    flex-direction: column;
    animation: authSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-selection-modal.is-active {
    display: flex;
}

@keyframes authSlideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.c-selection-modal__header {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--color-border);
}

.c-selection-modal__title {
    font-size: 1.1rem;
    font-weight: 700;
}

.c-selection-modal__close {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
}

.c-selection-modal__list {
    flex: 1;
    overflow-y: auto;
}

.c-selection-modal__item {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1.1rem;
    color: var(--color-text-primary);
    cursor: pointer;
    transition: background 0.2s;
}

.c-selection-modal__item:active {
    background: rgba(25, 155, 240, 0.1);
}

.c-auth__footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.c-auth__link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: none;
}

.c-auth__link:hover {
    text-decoration: underline;
}

.c-auth__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Date Input Specifics */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.5;
    cursor: pointer;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .c-auth__image-side {
        display: none;
    }
    .c-auth__side {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .c-auth__box {
        max-width: 100%;
    }
    .c-auth__row {
        grid-template-columns: 1fr;
    }
}
