/*
    login.css - Styles for Infyzon login page
    - Uses custom properties for primary and secondary color variables.
    - Includes base styling and responsive breakpoints.
*/

:root {
    --main-color: #0facf5; /* Primary brand color */
    --sec-color: #3e3e3e; /* Secondary text color */
}

/* Card container that wraps login form */
.login-box {
    border-radius: 16px;
    border: 1px solid #f7fafc;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

/* Logo sizing inside the heading */
.login-head img {
    height: 50px;
}

/* Title styling in login header */
.login-head h1 {
    font-size: 24px;
    font-weight: 600;
    color: #3e3e3e;
    margin-top: 5px;
}

/* Subheading paragraph style */
.login-head p {
    font-size: 14px;
    color: #9e9e9e;
}

/* Left icons inside input fields */
.login-input-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #bdbdbd;
}

/* Right icon for password visibility toggle */
.login-input-icon-right {
    position: absolute;
    top: 15px;
    right: 15px;
    color: #bdbdbd;
    cursor: pointer;
    font-size: 14px;
}

.login-input-icon-right:hover {
    color: #3e3e3e;
}

/* Input label style */
.login-input-label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #616161;
    font-weight: 500;
}

/* Shared style for email/password inputs */
.login-input {
    padding: 10px 16px;
    padding-left: 40px;
    width: 100%;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    color: #3e3e3e;
}

/* Focus state for accessible input ring color */
.login-input:focus {
    outline-color: var(--main-color);
}

/* Validation error message style, hidden by default via d-none in markup */
.login-error {
    font-size: 12px;
    color: #f44336;
    margin-top: 4px;
}

/* Forgot password link style */
.login-forgot-pass {
    display: block;
    font-size: 12px;
    color: #3e3e3e;
    font-weight: 500;
}

/* Remember me label style*/
.login-form-check {
    font-size: 12px;
    color: #3e3e3e;
    font-weight: 500;
}

/* Primary sign in button styling */
.login-btn {
    background-color: var(--main-color);
    color: white;
    border: none;
    margin-top: 10px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    width: 100%;
}

.login-btn:hover {
    background-color: #0d9de3;
    cursor: pointer;
}

/* Mobile first responsive tweaks */
@media (max-width: 575px) {
    .login-box {
        border-radius: 12px;
        padding: 20px 14px;
    }

    .login-head h1 {
        font-size: 22px;
    }

    .login-head p {
        font-size: 13px;
    }

    .login-input {
        padding: 10px 14px;
        padding-left: 40px;
    }

    .login-input-icon,
    .login-input-icon-right {
        top: 13px;
    }
}

/* Smaller tablet width */
@media (min-width: 576px) and (max-width: 767px) {
    .login-box {
        max-width: 420px;
    }
}

/* Desktop width for login form card */
@media (min-width: 768px) {
    .login-box {
        max-width: 450px;
    }
}
