﻿/* ============================= */
/* Global variables              */
/* ============================= */
:root {
    --bg: #e8e8e8;
    --spacing: 9px;
    --dot-color: rgba(0,0,0,0.15);
    --dot-size: 1.2px;
    --gray-100: #EBEEEF;
    --gray-300: #A1B1B7;
    --pink: #C23168;
    --focus-shadow: 0 0 0 0.2rem rgba(194,49,104,.25);
}

/* ============================= */
/* Body                          */
/* ============================= */
body {
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(circle,var(--dot-color) var(--dot-size),transparent calc(var(--dot-size) + .5px)), radial-gradient(circle,var(--dot-color) var(--dot-size),transparent calc(var(--dot-size) + .5px));
    background-size: var(--spacing) var(--spacing);
    background-position: 0 0, calc(var(--spacing)/2) calc(var(--spacing)/2);
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Montserrat', sans-serif !important;
}

/* ============================= */
/* Main card                     */
/* ============================= */
.custom-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 50px rgba(0,0,0,.5);
    max-width: 620px;
    width: 90%;
}

    .custom-card h2 {
        margin-bottom: 1rem;
    }

.custom-cardrecover {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 12px 50px rgba(0,0,0,.5);
    max-width: 550px;
    width: 90%;
}

    .custom-cardrecover h2 {
        margin-bottom: 1rem;
    }

/* ============================= */
/* General inputs                 */
/* ============================= */
.form-control-login {
    border-radius: 50px;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    padding: .6rem 1rem;
    transition: border-color .3s ease, box-shadow .3s ease;
    font-size: 14px !important;
}

    /* Standard focus */
    .form-control-login:focus {
        border-color: var(--pink) !important;
        box-shadow: var(--focus-shadow);
        background-color: white;
    }

    /* Autofill styles */
    .form-control-login:-webkit-autofill {
        -webkit-box-shadow: 0 0 0 1000px var(--gray-100) inset !important;
        -webkit-text-fill-color: #000 !important;
        caret-color: #000 !important;
        background-color: var(--gray-100) !important;
        transition: background-color 9999s ease-in-out 0s;
    }

/* ============================= */
/* Password input with icon      */
/* ============================= */
.input-group-pill .form-control-login {
    border-right: none;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.input-group-pill .input-group-text {
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-left: none;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
    display: flex;
    align-items: center;
}

/* Focus on the whole group */
.input-group-pill:focus-within .form-control-login,
.input-group-pill:focus-within .input-group-text {
    border-color: var(--pink) !important;
    box-shadow: var(--focus-shadow);
    background-color: var(--gray-100);
}

/* Eye button */
.input-group-pill .eye-btn {
    padding: .375rem .75rem;
    border: 0;
    background: transparent;
}

/* ============================= */
/* Utilities                     */
/* ============================= */
.outborderleft {
    border-left: none;
}

.outborderright {
    border-right: none;
}

.color-pink {
    color: var(--pink);
}

.black {
    color: #000 !important;
}

/* ============================= */
/* Custom checkbox               */
/* ============================= */
.custom-check {
    width: 18px;
    height: 18px;
    border-radius: 50% !important;
    border: 1px solid var(--gray-300);
    cursor: pointer;
    appearance: none;
    background: #fff;
}

    .custom-check:checked {
        background-color: var(--pink);
        border-color: var(--pink);
        box-shadow: 0 0 5px 2px rgba(194,49,104,.35);
    }

    .custom-check:focus {
        outline: none;
        box-shadow: none !important;
        border-color: var(--gray-300);
    }

/* Remove Bootstrap extra shadow */
.form-check-input:focus {
    box-shadow: none !important;
}

/* ============================= */
/* "Forgot password" link        */
/* ============================= */
.forgot-password {
    text-decoration: none;
    color: var(--pink);
}

    .forgot-password:hover {
        text-decoration: underline;
    }

/* ============================= */
/* Small typography              */
/* ============================= */
.small-text {
    font-size: .85rem;
    margin: 0;
}

.small-x-text {
    font-size: .60rem;
    margin: 0;
}

/* ============================= */
/* Rounded Password Input        */
/* ============================= */
.custom-password {
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid var(--gray-300);
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    transition: border-color 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

/* Text field */
.password-input {
    border: none;
    box-shadow: none;
    background-color: transparent;
    padding: 10px 14px;
    font-size: 14px !important;
    flex: 1;
    color: #000;
}

/* Eye button */
.toggle-password {
    cursor: pointer;
    background-color: var(--gray-100);
    border: none;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease-in-out;
}

    .toggle-password i {
        font-size: 16px;
        color: #334155;
    }

/* Focus on the whole container */
.custom-password:focus-within {
    border: 1px solid #C23168 !important;
    background-color: white;
}

    .custom-password:focus-within .toggle-password {
        background-color: white !important;
    }

/* Remove blue outline */
.password-input:focus {
    box-shadow: none;
    outline: none;
}

/* Autofill styles */
.password-input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px var(--gray-100) inset !important;
    -webkit-text-fill-color: #000 !important;
    caret-color: #000 !important;
    background-color: var(--gray-100) !important;
    transition: background-color 9999s ease-in-out 0s;
}

/* ============================= */
/* Custom separator              */
/* ============================= */
.custom-hr {
    width: 50%;
    background-color: #000000;
}

/* ============================= */
/* Gradient button               */
/* ============================= */
.custom-btn {
    background: linear-gradient(90deg, #d22e85, #f02d2d);
    color: white;
    font-weight: bold;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    border-radius: 6px;
}

    /* Hover, focus and active */
    .custom-btn:hover,
    .custom-btn:focus,
    .custom-btn:active {
        background: white;
        color: #d22e85;
        border-color: transparent;
        background-image: linear-gradient(white, white), linear-gradient(90deg, #d22e85, #f02d2d);
        background-origin: border-box;
        background-clip: padding-box, border-box;
        box-shadow: none;
    }

        /* Icon color on hover */
        .custom-btn:hover i,
        .custom-btn:focus i,
        .custom-btn:active i {
            color: #d22e85;
        }

/* ============================= */
/*           RECOVER             */
/* ============================= */
/* ============================= */
/* Disabled button (Image 1)     */
/* ============================= */
.btn-soft-disabled {
    background-color: #fde7ed !important; /* Very light pink background */
    color: #e7a3b3 !important; /* Light pink text and icon */
    font-weight: 700; /* Bolder as in the image */
    border: none !important;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: not-allowed;
    box-shadow: none;
    opacity: 1; /* Solid color, no transparency */
}

    /* Apply the same color to the icon inside the button */
    .btn-soft-disabled i {
        color: #e7a3b3 !important;
    }

    /* Prevent style change on hover */
    .btn-soft-disabled:hover,
    .btn-soft-disabled:focus,
    .btn-soft-disabled:active {
        background-color: #fde7ed !important;
        color: #e7a3b3 !important;
        box-shadow: none;
    }

.recover-inline-msg {
    color: #0277DD;
}

.green {
    color: #25B23F;
}

/* IE/Edge (EdgeHTML/IE11 engine): hide the eye and clear button */
.password-input::-ms-reveal,
.password-input::-ms-clear {
    display: none;
}

/* In case the field doesn't have that class */
input[type="password" i]::-ms-reveal,
input[type="password" i]::-ms-clear {
    display: none;
}
