
/* =================================
   AYUR CART - ADMIN LOGIN
   RESPONSIVE DESIGN
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
    font-family: Arial, sans-serif;
    background:
        radial-gradient(circle at 10% 15%, #dff5d2, transparent 35%),
        linear-gradient(135deg, #f5fbea, #e5f3dc);
}

/* MAIN CONTAINER */

.login-container {
    width: 100%;
    max-width: 1120px;
    min-height: 650px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 55px rgba(14, 70, 31, 0.18);
}

/* BRAND PANEL */

.brand-panel {
    padding: 55px 45px;
    color: white;
    background:
        radial-gradient(circle at 80% 80%, #258b36, transparent 40%),
        linear-gradient(145deg, #064b20, #08732d 65%, #0c8b36);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.brand-panel::after {
    content: "🌿";
    position: absolute;
    font-size: 180px;
    opacity: 0.09;
    right: -20px;
    top: 150px;
    transform: rotate(-25deg);
    pointer-events: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.brand-icon {
    font-size: 48px;
}

.brand h1 {
    font-size: 34px;
    letter-spacing: 1px;
}

.brand h1 span {
    color: #a8ef36;
}

.brand p {
    font-size: 12px;
    margin-top: 5px;
    color: #e0f3e2;
}

.brand-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.tag {
    display: inline-block;
    padding: 9px 18px;
    border: 1px solid #b5ed80;
    border-radius: 25px;
    color: #c5f68e;
    font-size: 12px;
    letter-spacing: 2px;
    margin-bottom: 25px;
}

.brand-content h2 {
    font-size: 42px;
    line-height: 1.2;
    margin-bottom: 18px;
}

.brand-content p {
    font-size: 17px;
    line-height: 1.7;
    color: #e0f3e2;
    max-width: 360px;
    margin: auto;
}

.produce {
    font-size: 48px;
    margin-top: 35px;
    letter-spacing: 5px;
}

.brand-footer {
    text-align: center;
    color: #c5e8c9;
    font-size: 13px;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

/* LOGIN FORM PANEL */

.form-panel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 55px;
    background: #ffffff;
}

.form-content {
    width: 100%;
    max-width: 390px;
    text-align: center;
}

.security-icon {
    width: 75px;
    height: 75px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 22px;
    background: #e6f5e8;
    color: #08732d;
    font-size: 42px;
}

.form-content h2 {
    color: #104d25;
    font-size: 34px;
    margin-bottom: 10px;
}

.subtitle {
    color: #777;
    font-size: 15px;
    margin-bottom: 35px;
}

form {
    text-align: left;
}

label {
    display: block;
    margin: 18px 0 9px;
    color: #294c34;
    font-weight: 600;
    font-size: 14px;
}

input {
    width: 100%;
    min-width: 0;
    padding: 16px;
    border: 1px solid #d6dfd7;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: 0.2s;
}

input:focus {
    border-color: #12833a;
    box-shadow: 0 0 0 3px rgba(18, 131, 58, 0.12);
}

button {
    width: 100%;
    min-height: 48px;
    margin-top: 28px;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(100deg, #08732d, #0c963b);
    color: white;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #075b25;
    transform: translateY(-2px);
}

button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

#message {
    min-height: 22px;
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #c62828;
    overflow-wrap: anywhere;
}

.access-note {
    margin-top: 35px;
    padding-top: 20px;
    border-top: 1px solid #e5e9e5;
    color: #68756b;
    font-size: 13px;
}

/* TABLETS */

@media screen and (max-width: 900px) {

    body {
        padding: 20px;
    }

    .login-container {
        max-width: 750px;
        min-height: auto;
        grid-template-columns: 1fr 1fr;
    }

    .brand-panel {
        padding: 35px 25px;
        min-height: 570px;
    }

    .brand h1 {
        font-size: 28px;
    }

    .brand-icon {
        font-size: 38px;
    }

    .brand-content h2 {
        font-size: 34px;
    }

    .brand-content p {
        font-size: 15px;
    }

    .produce {
        font-size: 35px;
        letter-spacing: 2px;
    }

    .form-panel {
        padding: 35px 25px;
    }

    .form-content h2 {
        font-size: 29px;
    }
}

/* MOBILE PHONES */

@media screen and (max-width: 650px) {

    body {
        padding: 15px;
        align-items: flex-start;
    }

    .login-container {
        width: 100%;
        max-width: 450px;
        margin: auto;
        grid-template-columns: 1fr;
        border-radius: 18px;
        min-height: auto;
    }

    .brand-panel {
        min-height: auto;
        padding: 28px 20px;
        gap: 28px;
    }

    .brand {
        justify-content: center;
    }

    .brand-icon {
        font-size: 36px;
    }

    .brand h1 {
        font-size: 27px;
    }

    .brand p {
        font-size: 11px;
    }

    .brand-content h2 {
        font-size: 30px;
    }

    .brand-content p {
        font-size: 14px;
        line-height: 1.6;
    }

    .tag {
        margin-bottom: 18px;
    }

    .produce {
        font-size: 32px;
        margin-top: 20px;
        letter-spacing: 2px;
    }

    .brand-footer {
        font-size: 11px;
    }

    .form-panel {
        padding: 35px 22px;
    }

    .form-content {
        max-width: 100%;
    }

    .security-icon {
        width: 65px;
        height: 65px;
        font-size: 35px;
        margin-bottom: 15px;
    }

    .form-content h2 {
        font-size: 27px;
    }

    .subtitle {
        font-size: 14px;
        margin-bottom: 25px;
    }

    label {
        font-size: 13px;
    }

    input {
        padding: 14px;
        font-size: 16px;
    }

    button {
        padding: 15px;
        font-size: 16px;
    }

    .access-note {
        margin-top: 25px;
        font-size: 12px;
    }
}

/* SMALL MOBILE PHONES */

@media screen and (max-width: 360px) {

    body {
        padding: 10px;
    }

    .login-container {
        border-radius: 14px;
    }

    .brand-panel {
        padding: 23px 14px;
    }

    .brand h1 {
        font-size: 23px;
    }

    .brand-icon {
        font-size: 30px;
    }

    .brand-content h2 {
        font-size: 26px;
    }

    .brand-content p {
        font-size: 13px;
    }

    .produce {
        font-size: 27px;
    }

    .form-panel {
        padding: 28px 16px;
    }

    .form-content h2 {
        font-size: 24px;
    }

    input {
        padding: 13px 11px;
    }

    .access-note {
        font-size: 11px;
    }
}

/* REDUCED MOTION ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
