/* ================================================
   GRN PROTEIN - SIGNUP PAGE STYLES
   MOBILE-FIRST REDESIGN - Ultra Attractive
   ================================================ */

/* CSS Variables */
:root {
    --primary-orange: #FF6B35;
    --dark-orange: #E85A2A;
    --light-orange: #FF8C5A;
    --black: #1A1A1A;
    --soft-black: #2D2D2D;
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --medium-gray: #E0E0E0;
    --text-gray: #666666;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background: #F8F8F8;
    min-height: 100vh;
}

/* ================================================
   MOBILE-FIRST DESIGN (Default)
   ================================================ */

.auth-container {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.auth-card {
    width: 100%;
    min-height: calc(100vh - 70px);
    background: var(--white);
    display: flex;
    flex-direction: column;
}

/* ================================================
   MOBILE BRANDING HEADER
   ================================================ */

.auth-brand {
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    padding: 35px 20px 25px 20px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Animated background pattern */
.auth-brand::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: movePattern 20s linear infinite;
}

@keyframes movePattern {
    0% { transform: translate(0, 0); }
    100% { transform: translate(30px, 30px); }
}

.auth-brand h1 {
    font-family: 'Bebas Neue', cursive;
    font-size: 32px;
    letter-spacing: 3px;
    margin-bottom: 8px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-brand p {
    font-size: 13px;
    font-weight: 300;
    opacity: 0.95;
    position: relative;
    z-index: 2;
    animation: fadeInUp 0.6s ease 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-brand ul {
    display: none; /* Hidden on mobile */
}

/* ================================================
   MOBILE SIGNUP FORM
   ================================================ */

.auth-form {
    flex: 1;
    padding: 30px 25px;
    background: var(--white);
    animation: fadeIn 0.6s ease 0.3s both;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.auth-form h2 {
    font-size: 26px;
    color: var(--black);
    font-weight: 800;
    margin-bottom: 6px;
    text-align: center;
}

.sub-text {
    color: var(--text-gray);
    font-size: 13px;
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}

/* Form Inputs */
.auth-form input {
    width: 100%;
    padding: 15px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 2px solid var(--medium-gray);
    font-size: 14px;
    font-family: 'Outfit', sans-serif;
    transition: all 0.3s ease;
    background: var(--white);
    color: var(--black);
    -webkit-appearance: none;
    appearance: none;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.15);
    transform: translateY(-2px);
}

.auth-form input::placeholder {
    color: #BDBDBD;
}

/* Row for City/Pincode */
.row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.row input {
    margin-bottom: 16px;
}

/* Checkbox */
.checkbox {
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 12px 0 20px;
    line-height: 1.5;
}

.checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: var(--primary-orange);
    flex-shrink: 0;
}

.checkbox label {
    flex: 1;
    cursor: pointer;
}

.checkbox a {
    color: var(--primary-orange);
    text-decoration: none;
    font-weight: 700;
}

.checkbox a:hover {
    text-decoration: underline;
}

/* Submit Button - ATTRACTIVE */
.auth-form button {
    width: 100%;
    padding: 17px;
    background: linear-gradient(135deg, var(--primary-orange) 0%, var(--dark-orange) 100%);
    color: var(--white);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.35);
    position: relative;
    overflow: hidden;
}

.auth-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.auth-form button:active::before {
    left: 100%;
}

.auth-form button:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

/* Switch Link */
.switch {
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

.switch a {
    color: var(--primary-orange);
    font-weight: 800;
    text-decoration: none;
}

.switch a:hover {
    text-decoration: underline;
}

/* ================================================
   SUCCESS/ERROR MESSAGES
   ================================================ */

.msg {
    padding: 15px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    display: none;
    animation: slideInDown 0.4s ease;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    color: #2E7D32;
    border: 2px solid #4CAF50;
}

.error {
    background: linear-gradient(135deg, #FFEBEE 0%, #FFCDD2 100%);
    color: #C62828;
    border: 2px solid #F44336;
}

/* ================================================
   TABLET (576px - 968px)
   ================================================ */

@media (min-width: 576px) {
    .auth-container {
        padding: 20px;
        background: linear-gradient(135deg, #FF6B35 0%, #E85A2A 100%);
    }

    .auth-card {
        max-width: 500px;
        min-height: auto;
        border-radius: 20px;
        overflow: hidden;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    }

    .auth-brand {
        padding: 40px 30px 30px 30px;
    }

    .auth-brand h1 {
        font-size: 36px;
    }

    .auth-brand p {
        font-size: 14px;
    }

    .auth-form {
        padding: 35px 35px;
    }

    .auth-form h2 {
        font-size: 28px;
    }

    .sub-text {
        font-size: 14px;
    }

    .auth-form input {
        padding: 16px 18px;
        font-size: 15px;
    }

    .auth-form button {
        padding: 18px;
        font-size: 16px;
    }
}

/* ================================================
   DESKTOP (969px+)
   ================================================ */

@media (min-width: 969px) {
    body {
        background: linear-gradient(135deg, var(--black) 0%, var(--soft-black) 50%, var(--black) 100%);
    }

    .auth-container {
        padding: 60px 20px;
        background: transparent;
    }

    .auth-card {
        display: grid;
        grid-template-columns: 450px 1fr;
        max-width: 1000px;
        background: var(--white);
        border-radius: 24px;
        overflow: hidden;
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    }

    .auth-brand {
        background: linear-gradient(135deg, var(--black) 0%, var(--soft-black) 100%);
        padding: 50px 45px;
        text-align: left;
        position: relative;
        overflow: hidden;
    }

    .auth-brand::before {
        background: radial-gradient(circle, rgba(255,107,53,0.1) 1px, transparent 1px);
        background-size: 40px 40px;
    }

    .auth-brand::after {
        content: '';
        position: absolute;
        width: 250px;
        height: 250px;
        background: radial-gradient(circle, rgba(255, 107, 53, 0.15) 0%, transparent 70%);
        border-radius: 50%;
        bottom: -100px;
        right: -100px;
    }

    .auth-brand h1 {
        font-size: 48px;
        letter-spacing: 3px;
        color: var(--primary-orange);
        margin-bottom: 15px;
    }

    .auth-brand p {
        font-size: 16px;
        color: #ccc;
        margin-bottom: 30px;
    }

    .auth-brand ul {
        display: block;
        list-style: none;
        position: relative;
        z-index: 2;
    }

    .auth-brand li {
        margin-bottom: 15px;
        font-size: 15px;
        display: flex;
        align-items: center;
        color: #ddd;
    }

    .auth-brand li::before {
        content: "✔";
        color: var(--primary-orange);
        margin-right: 12px;
        font-weight: bold;
        font-size: 16px;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 107, 53, 0.15);
        border-radius: 50%;
        flex-shrink: 0;
    }

    .auth-form {
        padding: 50px 50px;
    }

    .auth-form h2 {
        font-size: 32px;
        text-align: left;
        margin-bottom: 8px;
    }

    .sub-text {
        text-align: left;
        font-size: 15px;
        margin-bottom: 30px;
    }

    .auth-form input {
        margin-bottom: 18px;
    }

    .checkbox {
        margin: 15px 0 25px;
    }

    .auth-form button:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 30px rgba(255, 107, 53, 0.4);
    }

    .auth-form button:hover::before {
        left: 100%;
    }

    .switch {
        margin-top: 20px;
        text-align: left;
    }
}

/* ================================================
   LARGE DESKTOP (1200px+)
   ================================================ */

@media (min-width: 1200px) {
    .auth-card {
        max-width: 1100px;
        grid-template-columns: 480px 1fr;
    }

    .auth-brand {
        padding: 60px 50px;
    }

    .auth-form {
        padding: 60px 55px;
    }
}

/* ================================================
   SMALL HEIGHT ADJUSTMENTS
   ================================================ */

@media (max-height: 700px) and (min-width: 969px) {
    .auth-container {
        padding: 30px 20px;
    }

    .auth-card {
        grid-template-columns: 380px 1fr;
        max-width: 900px;
    }

    .auth-brand {
        padding: 35px 30px;
    }

    .auth-brand h1 {
        font-size: 38px;
    }

    .auth-brand li {
        margin-bottom: 10px;
        font-size: 13px;
    }

    .auth-form {
        padding: 35px 40px;
        overflow-y: auto;
        max-height: 80vh;
    }

    .auth-form h2 {
        font-size: 26px;
    }

    .auth-form input {
        padding: 12px 14px;
        margin-bottom: 12px;
    }

    .auth-form button {
        padding: 14px;
        font-size: 14px;
    }
}

/* ================================================
   LANDSCAPE MOBILE
   ================================================ */

@media (max-height: 500px) and (orientation: landscape) {
    .auth-container {
        padding: 0;
    }

    .auth-card {
        display: grid;
        grid-template-columns: 40% 1fr;
        min-height: 100vh;
        border-radius: 0;
    }

    .auth-brand {
        padding: 20px;
    }

    .auth-brand h1 {
        font-size: 24px;
        margin-bottom: 5px;
    }

    .auth-brand p {
        font-size: 11px;
    }

    .auth-form {
        padding: 20px;
        overflow-y: auto;
    }

    .auth-form h2 {
        font-size: 18px;
        margin-bottom: 5px;
    }

    .sub-text {
        font-size: 11px;
        margin-bottom: 15px;
    }

    .auth-form input {
        padding: 10px 12px;
        margin-bottom: 10px;
        font-size: 13px;
    }

    .row {
        gap: 8px;
    }

    .checkbox {
        font-size: 11px;
        margin: 8px 0 15px;
    }

    .auth-form button {
        padding: 12px;
        font-size: 13px;
    }

    .switch {
        margin-top: 12px;
        font-size: 12px;
    }
}

/* ================================================
   CUSTOM SCROLLBAR
   ================================================ */

.auth-form::-webkit-scrollbar {
    width: 8px;
}

.auth-form::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 10px;
}

.auth-form::-webkit-scrollbar-thumb {
    background: var(--primary-orange);
    border-radius: 10px;
}

.auth-form::-webkit-scrollbar-thumb:hover {
    background: var(--dark-orange);
}