/* ============================================================
   Amalltech — Login Page Styles
   Font: Inter (Google Fonts)
   Brand: Orange #F26522 + Blue #2B5DAA
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── CSS Variables ── */
:root {
    --brand-orange:       #F26522;
    --brand-orange-dark:  #C94E0F;
    --brand-orange-light: #F5813C;
    --brand-blue:         #2B5DAA;
    --brand-blue-dark:    #1A3F7A;
    --white:              #FFFFFF;
    --gray-50:            #FDF8F5;
    --gray-100:           #FAF0E8;
    --gray-200:           #EDD9C8;
    --gray-400:           #B09580;
    --gray-500:           #7A6050;
    --gray-700:           #4A3828;
    --gray-900:           #1A0E08;
}

/* ── Base ── */
body {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.5;
    color: #1a1a2e;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: linear-gradient(135deg, #FCE8D8 0%, #E8D5C4 50%, #D4E4F4 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

/* ── Card shell ── */
.login-card {
    display: flex;
    width: 100%;
    max-width: 860px;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 64px -16px rgba(180,80,20,0.22), 0 0 0 1px rgba(255,255,255,0.7);
}

/* ── Left orange panel ── */
.panel-left {
    flex: 0 0 42%;
    background: linear-gradient(160deg, var(--brand-orange-light) 0%, var(--brand-orange-dark) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 36px;
    overflow: hidden;
}
.panel-left::before {
    content: '';
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    top: -80px; left: -80px;
}
.panel-left::after {
    content: '';
    position: absolute;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    bottom: -60px; right: -60px;
}

/* Vertical WELCOME text */
.welcome-text {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 5px;
    color: rgba(255,255,255,0.28);
    text-transform: uppercase;
}

/* Logo card */
.left-logo-wrap {
    background: var(--white);
    border-radius: 14px;
    padding: 12px 20px;
    margin-bottom: 32px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1;
}
.left-logo-wrap img {
    height: 44px;
    max-width: 180px;
    object-fit: contain;
    display: block;
}

/* Illustration wrap (commented out in HTML, kept for reference) */
.illus-wrap {
    position: relative;
    z-index: 1;
    margin-bottom: 32px;
}
.illus-card {
    width: 130px; height: 160px;
    background: rgba(255,255,255,0.14);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
}
.illus-badge {
    position: absolute;
    bottom: -14px; right: -14px;
    width: 40px; height: 40px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.18);
}

/* Left panel text */
.left-title {
    color: var(--white);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
    text-align: center;
    z-index: 1;
    line-height: 1.4;
    margin: 20px 0px 8px;
}
.left-sub {
    color: rgba(255,255,255,0.58);
    font-size: 12.5px;
    font-weight: 400;
    text-align: center;
    z-index: 1;
    line-height: 1.65;
    max-width: 210px;
}

/* ── Right form panel ── */
.panel-right {
    flex: 1;
    background: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 48px;
}

/* Zoho Books–style type scale */
.signin-eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    color: var(--brand-orange);
    text-transform: uppercase;
    margin-bottom: 10px;
    opacity: 0.9;
}
.signin-title {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    letter-spacing: -0.4px;
    line-height: 1.25;
}
.signin-sub {
    font-size: 13.5px;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 28px;
    line-height: 1.6;
}

/* Error alert */
.alert-error {
    background: #FEF2F2;
    color: #B91C1C;
    padding: 10px 14px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    border-left: 3px solid #EF4444;
}

/* Form */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    letter-spacing: 0.1px;
}

/* Input with icon */
.input-wrap { position: relative; }
.input-icon {
    position: absolute;
    left: 14px; top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    display: flex;
    pointer-events: none;
}
.input-icon svg { width: 16px; height: 16px; }

.form-control {
    width: 100%;
    padding: 11px 14px 11px 40px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    outline: none;
    color: #111827;
    background: #FAFAFA;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    letter-spacing: 0.1px;
}
.form-control::placeholder {
    color: #9CA3AF;
    font-weight: 400;
}
.form-control:focus {
    border-color: var(--brand-orange);
    background: #FFFFFF;
    box-shadow: 0 0 0 3px rgba(242,101,34,0.12);
}

/* Submit button */
.btn-submit {
    width: 100%;
    padding: 12px 20px;
    background: var(--brand-orange);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    transition: background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 8px rgba(242,101,34,0.30);
}
.btn-submit:hover {
    background: var(--brand-orange-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(242,101,34,0.42);
}
.btn-submit:active { transform: translateY(0); box-shadow: none; }
.btn-submit svg { width: 16px; height: 16px; }

/* Footer link */
.form-footer {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
}
.form-footer a {
    color: var(--brand-orange);
    font-weight: 500;
    text-decoration: none;
}
.form-footer a:hover {
    text-decoration: underline;
    color: var(--brand-orange-dark);
}

/* Demo credentials box */
.demo-box {
    margin-top: 20px;
    padding: 12px 14px;
    background: #F9FAFB;
    border: 1px dashed #E5E7EB;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    color: #6B7280;
    line-height: 1.75;
}
.demo-box .demo-title {
    font-size: 11.5px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    letter-spacing: 0.2px;
}
.demo-box strong {
    font-weight: 600;
    color: #111827;
}

/* ── Animation ── */
.anim-scene {
    position: relative;
    width: 180px;
    height: 130px;
    margin-bottom: 8px;
    z-index: 1;
}

/* Orbit ring */
.anim-orbit {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 1.5px dashed rgba(255,255,255,0.25);
    animation: spin-slow 12s linear infinite;
}
@keyframes spin-slow {
    to { transform: rotate(360deg); }
}

/* Orbit dots */
.anim-orbit::before,
.anim-orbit::after {
    content: '';
    position: absolute;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
}
.anim-orbit::before { top: -4px; left: 50%; transform: translateX(-50%); }
.anim-orbit::after  { bottom: -4px; left: 50%; transform: translateX(-50%); }

/* Floating mini-cards */
.anim-card {
    position: absolute;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 10px 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.28);
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.anim-card-icon {
    width: 24px; height: 24px;
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.anim-card-line {
    height: 4px; border-radius: 2px;
}
.anim-card-line.short { width: 32px; }
.anim-card-line.long  { width: 48px; }
.anim-card-line.medium { width: 36px; }

/* Card 1 – Invoice */
.anim-card-1 {
    background: rgba(255,255,255,0.18);
    left: 10px; top: 18px;
    width: 72px;
    animation: float-a 3.2s ease-in-out infinite;
}
.anim-card-1 .anim-card-icon { background: rgba(242,101,34,0.7); }
.anim-card-1 .anim-card-line { background: rgba(255,255,255,0.6); }

/* Card 2 – Tools */
.anim-card-2 {
    background: rgba(255,255,255,0.22);
    right: 8px; top: 10px;
    width: 78px;
    animation: float-b 4s ease-in-out infinite;
}
.anim-card-2 .anim-card-icon { background: rgba(43,93,170,0.7); }
.anim-card-2 .anim-card-line { background: rgba(255,255,255,0.55); }

/* Card 3 – Payment */
.anim-card-3 {
    background: rgba(255,255,255,0.14);
    left: 50%; transform: translateX(-50%);
    bottom: 0;
    width: 82px;
    animation: float-c 3.6s ease-in-out infinite;
}
.anim-card-3 .anim-card-icon { background: rgba(242,101,34,0.5); }
.anim-card-3 .anim-card-line { background: rgba(255,255,255,0.5); }

/* Centre glow pulse */
.anim-glow {
    position: absolute;
    inset: 0; margin: auto;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(242,101,34,0.35);
    animation: pulse-glow 2.4s ease-in-out infinite;
    display: flex; align-items: center; justify-content: center;
}
.anim-glow svg { width: 22px; height: 22px; opacity: 0.9; }

/* Keyframes */
@keyframes float-a {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-10px); }
}
@keyframes float-b {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-14px); }
}
@keyframes float-c {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%       { transform: translateX(-50%) translateY(-8px); }
}
@keyframes pulse-glow {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0   rgba(242,101,34,0.4); }
    50%       { transform: scale(1.12); box-shadow: 0 0 0 12px rgba(242,101,34,0); }
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .login-card    { flex-direction: column; }
    .panel-left    { flex: none; padding: 36px 24px 28px; }
    .welcome-text  { display: none; }
    .panel-right   { padding: 32px 24px; }
    .signin-title  { font-size: 22px; }
}
