@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-regular-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-medium-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-medium-webfont.woff') format('woff');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-semibold-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-semibold-webfont.woff') format('woff');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Causten';
    src: url('../../fonts/causten/causten-bold-webfont.woff2') format('woff2'),
         url('../../fonts/causten/causten-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Causten', sans-serif !important;
    background-color: #F8F7F2;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: #000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'Causten', sans-serif !important;
}

h3 {
    font-weight: 700;
}

body.authentication-page {
    background-color: #F4F3EF;
}

.auth-card {
    border-radius: 20px;
    border: 1px solid #e5e5e5;
}

.auth-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E4E4E7;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding: 11px;
    text-align: center;
}

.form-control {
    height: 52px;
    border-radius: 8px;
}

.form-control:focus {
    border: 2px solid #000 !important;
    box-shadow: none !important;
}

.btn-dark-custom {
    background: #0f0a0a;
    color: #FFFFFF;
    height: 52px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
}

.btn-dark-custom:hover {
    background: #000;
    color: #fff;
}

.remember-wrapper {
    font-size: 14px;
}

.forgot-link {
    font-size: 16px;
    text-decoration: none;
    color: #161212;
    font-weight: 500;
    padding-bottom: 3px;
}

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

.form-check .form-check-label {
    font-size: 16px;
    color: #161212;
    font-weight: 400;
}

@media (max-width: 769px) {
    .remember-wrapper {
        flex-wrap: wrap;
    }

    .forgot-link {
        width: 100%;
        text-align: center;
        margin-top: 8px;
    }
}

/* Keep icons inside input aligned, even with error below */
.input-icon {
    position: absolute;
    left: 15px;
    /* space from left */
    top: 50%;
    /* vertical center */
    transform: translateY(-50%);
    font-size: 20px;
    color: #6c757d;
    z-index: 10;
    pointer-events: none;
    /* don’t block typing */
}

/* Error message styling */
.invalid-feedback {
    font-size: 13px;
    margin-top: 5px;
    color: red;
    display: block;
}

/* removes the exclamation icon */
input#password.is-invalid {
    background-image: none !important;
}
