﻿
/* ==========================================
   CATERING LOGIN - PREMIUM GREEN THEME
========================================== */

:root {
    --login-primary: #198754;
    --login-primary-dark: #126B43;
    --login-primary-light: #2D9B69;
    --login-accent: #D6A84F;
    --login-background: #FFFAF7;
    --login-soft-green: #E6F2EC;
    --login-card: #FFFFFF;
    --login-text: #343A40;
    --login-muted: #777777;
    --login-border: #E4E9E5;
}

/* MAIN PAGE */

.catering-login-page {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient( 145deg, #FFFAF7 0%, #F5F8F5 50%, #FFFFFF 100% );
    font-family: 'Segoe UI', sans-serif;
}

/* DECORATIVE BACKGROUND */

.login-decoration {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

/* TOP DECORATION */

.login-decoration-top {
    top: -125px;
    left: -100px;
    width: 370px;
    height: 230px;
    background: linear-gradient( 135deg, #198754, #2D9B69 );
    border-radius: 0 0 75% 0;
    transform: rotate(-8deg);
}

    .login-decoration-top::after {
        content: "";
        position: absolute;
        bottom: -12px;
        right: -30px;
        width: 110%;
        height: 7px;
        background: linear-gradient( 90deg, #D6A84F, #F0D18A );
        transform: rotate(-8deg);
        border-radius: 50%;
    }

/* BOTTOM DECORATION */

.login-decoration-bottom {
    right: -120px;
    bottom: -160px;
    width: 450px;
    height: 270px;
    background: linear-gradient( 135deg, #2D9B69, #126B43 );
    border-radius: 80% 0 0 0;
}

    .login-decoration-bottom::before {
        content: "";
        position: absolute;
        top: -10px;
        left: -40px;
        width: 120%;
        height: 7px;
        background: linear-gradient( 90deg, #F0D18A, #D6A84F );
        border-radius: 50%;
        transform: rotate(-10deg);
    }

/* MAIN CONTENT */

.login-content {
    width: 100%;
    max-width: 440px;
    position: relative;
    z-index: 1;
}

/* BRANDING */

.login-brand {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    margin-bottom: 2px;
}

.login-brand-name {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--login-primary-dark);
}

    .login-brand-name span {
        font-size: 29px;
        font-weight: 800;
        letter-spacing: -1px;
    }

    .login-brand-name small {
        font-size: 11px;
        font-weight: 700;
        letter-spacing: 3px;
        color: var(--login-accent);
    }

/* LOGIN CARD */

.login-card {
    background: rgba(255, 255, 255, 0.98);
    padding: 35px 32px;
    border-radius: 22px;
    border: 1px solid rgba(25, 135, 84, 0.08);
    box-shadow: 0 12px 35px rgba(30, 75, 50, 0.07), 0 2px 8px rgba(30, 75, 50, 0.025);
}

/* HEADING */

.login-heading {
    text-align: center;
    margin-bottom: 32px;
}

    .login-heading h2 {
        color: var(--login-text);
        font-size: 29px;
        font-weight: 800;
        margin-bottom: 7px;
    }

        .login-heading h2 span {
            color: var(--login-primary);
        }

    .login-heading p {
        color: var(--login-muted);
        font-size: 15px;
        margin: 0;
    }

/* FORM FIELDS */

.login-field {
    margin-bottom: 23px;
}

    .login-field label {
        display: block;
        color: #393939;
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 8px;
    }

.login-input-wrapper {
    display: flex;
    align-items: center;
    height: 53px;
    border: 1px solid var(--login-border);
    border-radius: 11px;
    background: #FFFFFF;
    transition: all 0.2s ease;
    overflow: hidden;
}

    .login-input-wrapper:focus-within {
        border-color: var(--login-primary);
        box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.08);
    }

.login-field-icon {
    width: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--login-primary);
    font-size: 16px;
    flex-shrink: 0;
}

.login-input {
    height: 100%;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-size: 15px;
    color: var(--login-text);
    padding-left: 0;
    background: transparent !important;
}

    .login-input::placeholder {
        color: #AAA;
    }

/* PASSWORD TOGGLE */

.password-toggle {
    height: 100%;
    width: 48px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: #777;
    cursor: pointer;
    transition: color 0.2s ease;
}

    .password-toggle:hover {
        color: var(--login-primary);
    }

/* VALIDATION */

.login-field .validation-message {
    display: block;
    color: #DC3545;
    font-size: 12px;
    margin-top: 5px;
}

/* FOOTER INFORMATION */

.login-footer-text {
    text-align: center;
    color: #888;
    font-size: 12px;
    margin: 25px 0 22px;
}

    .login-footer-text i {
        color: var(--login-accent);
        margin-right: 5px;
    }

/* LOGIN BUTTON */

.login-submit-btn {
    width: 100%;
    min-height: 53px;
    border: none;
    border-radius: 11px;
    background: linear-gradient( 110deg, #21945E, #198754 );
    color: #FFFFFF;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.3px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    box-shadow: 0 5px 13px rgba(25, 135, 84, 0.16);
    transition: all 0.2s ease;
}

    .login-submit-btn:hover:not(:disabled) {
        background: linear-gradient( 110deg, #198754, #126B43 );
        transform: translateY(-2px);
        box-shadow: 0 8px 17px rgba(25, 135, 84, 0.20);
    }

    .login-submit-btn:active {
        transform: scale(0.98);
    }

    .login-submit-btn:disabled {
        opacity: 0.75;
        cursor: not-allowed;
    }

/* COPYRIGHT */

.login-copyright {
    text-align: center;
    color: #999;
    font-size: 11px;
    margin-top: 23px;
}

/* MOBILE RESPONSIVE - SAME DESIGN, COMPACT SIZE */

@media (max-width: 576px) {

    .catering-login-page {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        padding: 8px 18px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
    }

    .login-content {
        width: 100%;
        max-width: 420px;
    }

    /* LOGO */
    .login-brand {
        margin-bottom: 10px;
    }

    .login-logo {
        width: 85px;
        height: 85px;
        object-fit: contain;
        margin-bottom: 0;
    }

    .login-brand-name span {
        font-size: 27px;
    }

    .login-brand-name small {
        font-size: 10px;
        letter-spacing: 2px;
    }

    /* LOGIN CARD */
    .login-card {
        padding: 20px 25px;
        border-radius: 19px;
    }

    /* HEADING */
    .login-heading {
        margin-bottom: 18px;
    }

        .login-heading h2 {
            font-size: 25px;
            margin-bottom: 5px;
        }

        .login-heading p {
            font-size: 14px;
        }

    /* INPUT FIELDS */
    .login-field {
        margin-bottom: 14px;
    }

        .login-field label {
            font-size: 13px;
            margin-bottom: 5px;
        }

    .login-input-wrapper {
        height: 46px;
    }

    .login-field-icon {
        width: 42px;
    }

    .login-input {
        font-size: 13px;
    }

    .password-toggle {
        width: 42px;
    }

    /* SECURITY TEXT */
    .login-footer-text {
        font-size: 10px;
        margin: 15px 0;
    }

    /* LOGIN BUTTON */
    .login-submit-btn {
        min-height: 46px;
        font-size: 16px;
    }

    /* COPYRIGHT */
    .login-copyright {
        font-size: 10px;
        margin-top: 12px;
    }

    /* SAME GREEN AND GOLD DECORATIONS */
    .login-decoration-top {
        width: 220px;
        height: 150px;
    }

    .login-decoration-bottom {
        width: 260px;
        height: 180px;
    }
}

/* SHORT SCREENS */

@media (max-height: 650px) and (min-width: 577px) {

    .catering-login-page {
        align-items: flex-start;
    }
}

/* BROWSER AUTOFILL */

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    box-shadow: 0 0 0 1000px #FFFFFF inset !important;
    -webkit-text-fill-color: #343A40 !important;
    caret-color: #343A40;
    transition: background-color 9999s ease-out 0s;
}
