/* Material Web Components Styling */
:root {
    /* System Tokens */
    --md-ref-typeface-brand: 'Barlow';
    --md-ref-typeface-plain: 'Barlow', sans-serif;
    --md-sys-color-primary: #3A9BB1;
    --md-sys-color-on-primary: #ffffff;

    /* Component Overrides */
    --md-filled-text-field-container-color: #e9ecef;
    --md-filled-text-field-focus-active-indicator-color: var(--md-sys-color-primary);
    --md-filled-text-field-active-indicator-color: #757575;
    --md-filled-text-field-label-text-color: #666;
    --md-filled-text-field-focus-label-text-color: var(--md-sys-color-primary);
    --md-filled-field-container-shape-start-start: 4px;
    --md-filled-field-container-shape-start-end: 4px;
    --md-filled-field-container-shape-end-end: 0;
    --md-filled-field-container-shape-end-start: 0;

    --md-filled-button-container-shape: 25px;

    --md-checkbox-selected-container-color: var(--md-sys-color-primary);
    --md-checkbox-selected-icon-color: var(--md-sys-color-on-primary);
    --md-checkbox-outline-color: #757575;
}

md-filled-text-field {
    --md-filled-text-field-top-space: 24px;
    --md-filled-text-field-bottom-space: 10px;
}

md-filled-button {
    height: 44px;
    --md-filled-button-label-text-size: 14px;
    --md-filled-button-hover-state-layer-opacity: 0;
    --md-filled-button-hover-elevation: 3;
    --md-filled-button-pressed-elevation: 1;
}

md-icon {
    font-family: 'Material Icons' !important;
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.btn-uppercase {
    text-transform: uppercase;
}

.aqa-input {
    width: 100%;
    margin-bottom: 20px;
}

.aqa-submit-btn {
    width: 100%;
    margin-top: 15px;
    text-transform: uppercase;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me-text {
    font-size: 14px;
    color: #666;
}

.social-btn {
    width: 100%;
    margin-bottom: 10px;
    --md-outlined-button-label-text-color: #333;
    --md-outlined-button-outline-color: #ddd;
    --md-outlined-button-hover-state-layer-color: var(--md-sys-color-primary);
    --md-outlined-button-pressed-state-layer-color: var(--md-sys-color-primary);
    --md-outlined-button-container-shape: 25px;
    --md-outlined-button-hover-elevation: 3;
    --md-outlined-button-pressed-elevation: 1;
}

.aqa-info-buttons-wrapper {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-content: baseline;
}

.aqa-text-with-button {
    display: flex;
    align-items: center;
    justify-content: center;

    md-text-button {
        --md-text-button-label-text-size: 14px;
    }

    span {
        font-size: 14px;
        color: #666;
    }
}

.aqa-forgot-password-btn {
    --md-text-button-label-text-size: 14px;
}

.aqa-link {
    font-size: 14px;
    color: var(--md-sys-color-primary);
    text-decoration: none;
    font-weight: 500;
}

.aqa-link:hover {
    text-decoration: underline;
}

/* Social Login Styles */
.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.or-separator {
    display: flex;
    align-items: center;
    margin: 20px 0;
    color: #999;
}

.or-separator .line {
    flex: 1;
    height: 1px;
    background-color: #eee;
}

.or-separator .text {
    padding: 0 15px;
    font-size: 13px;
    text-transform: lowercase;
}

/* Form Layout Extras */
.kc-feedback-text {
    margin-bottom: 20px;
    color: #d32f2f;
    font-size: 14px;
}

.password-visibility-toggle {
    position: absolute;
    right: 0;
    top: 0;
}

.kc-password-visibility-button {
    top: 8px !important;
}

.delete-account-alert {
    margin-top: 0 !important;
    margin-bottom: 30px !important;
}

.delete-account-list {
    color: #72767b;
    list-style: disc;
    list-style-position: inside;
}

.cancel-button-container {
    margin-left: calc(100% - 220px);
}

.cookie-notice {
    font-size: 11px;
    color: #666;
    margin-top: auto;
    padding-top: 1rem;
    text-align: center;
}
