/* assets/css/login.css */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    cursor: default;
    caret-color: transparent;       /*  kills blinking caret everywhere */
    user-select: none;              /*  prevents text selection cursor */
    -webkit-user-select: none;
}

:root {
    --white:        #ffffff;
    --border:       #dbdbdb;
    --bg:           #fafafa;
    --text:         #262626;
    --muted:        #8e8e8e;
    --accent:       #0095f6;
    --accent-hover: #1877f2;
    --error:        #ed4956;
    --radius:       50px;
    --font:         'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --ease:         cubic-bezier(.4, 0, .2, 1);
}

html, body { height: 100%; }

body {
    min-height: 100vh;
    display: flex;
    font-family: var(--font);
    background: var(--white);
    color: var(--text);
    overflow: hidden;
}

/*  RE-ENABLE CARET & SELECTION ONLY IN INPUTS  */
input, textarea {
    cursor: text;
    caret-color: var(--text);       /*  blinking caret back inside fields only */
    user-select: text;
    -webkit-user-select: text;
}

/*  POINTER FOR CLICKABLES  */
button, a, .pw-btn, .btn-login, .btn-register { cursor: pointer; }
.btn-login:disabled { cursor: default; }

/*  LEFT PANEL  */
.left-panel {
    flex: 0 0 55%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 48px 56px;
    border-right: 1px solid var(--border);
    animation: panelIn .6s var(--ease) both;
}

@keyframes panelIn {
    from { opacity: 0; transform: translateX(-20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.brand-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.logo-wrap img {
    width: 480px;
    height: auto;
    display: block;
    animation: logoFadeIn .8s var(--ease) .1s both;
}

@keyframes logoFadeIn {
    from { opacity: 0; transform: scale(.93); }
    to   { opacity: 1; transform: scale(1); }
}

.brand-text {
    text-align: center;
    animation: fadeUp .7s var(--ease) .3s both;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -.3px;
    margin-bottom: 6px;
}

.brand-sub {
    font-size: 18px;
    color: var(--muted);
    font-weight: 400;
}

.brand-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    animation: fadeUp .7s var(--ease) .45s both;
}

.badge {
    font-size: 16px;
    font-weight: 500;
    color: var(--muted);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 5px 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: border-color .2s, color .2s;
    cursor: default;
}
.badge i { font-size: 14px; }
.badge:hover { border-color: #a8a8a8; color: var(--text); }


/*  RIGHT PANEL  */
.right-panel {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--white);
    padding: 0 40px;
    animation: panelInR .6s var(--ease) .05s both;
}

@keyframes panelInR {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

.form-wrap {
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/*  Welcome heading  */
.welcome-heading {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -.2px;
    align-self: flex-start;
    animation: fadeUp .6s var(--ease) .2s both;
    line-height: 1.3;
    margin-left: -90px;
}

/*  ERROR  */
.error-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff0f1;
    border: 1px solid #ffcdd2;
    border-radius: 12px;
    padding: 11px 16px;
    margin-bottom: 14px;
    font-size: 13.5px;
    color: var(--error);
    animation: shake .35s var(--ease);
    width: 100%;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%       { transform: translateX(-7px); }
    40%       { transform: translateX(7px); }
    60%       { transform: translateX(-4px); }
    80%       { transform: translateX(4px); }
}

/*  FORM  */
form { width: 150%; }

/*  FLOATING LABEL FIELD  */
.field {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
}

.field-input {
    width: 100%;
    height: 60px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 26px 50px 6px 20px;
    font-size: 16px;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s;
}

.field-input::placeholder { color: transparent; }

/*  BLACK focus border & subtle glow  */
.field-input:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, .08);
    background: var(--white);
}

/*  Floating label  */
.field-label {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--muted);
    font-weight: 600;
    pointer-events: none;
    transition:
        top .15s var(--ease),
        transform .15s var(--ease),
        font-size .15s var(--ease);
}

/* Float UP when focused OR has a value */
.field-input:focus ~ .field-label,
.field-input:not(:placeholder-shown) ~ .field-label {
    top: 6px;
    transform: translateY(0);
    font-size: 14px;
    letter-spacing: .1px;
}

/* Password eye icon */
.pw-btn {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text);
    font-size: 18px;
    padding: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s, color .15s;
    display: flex;
    align-items: center;
}
.pw-btn:hover { color: var(--muted); }

.field:focus-within .pw-btn,
.field-input:not(:placeholder-shown) ~ .pw-btn {
    opacity: 1;
    pointer-events: auto;
}

/*  LOGIN BUTTON -- BLACK pill, full width  */
.btn-login {
    width: 100%;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    height: 50px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    margin-top: 14px;
    position: relative;
    overflow: hidden;
    transition: background .15s, opacity .15s;
    letter-spacing: .2px;
}

.btn-login:hover:not(:disabled)  { background: #333333; }
.btn-login:active:not(:disabled) { background: #000000; }
.btn-login:disabled { opacity: .55; cursor: default; }

.btn-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 100%;
}

/* Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    transform: scale(0);
    animation: rippleAnim .5s linear;
    pointer-events: none;
}
@keyframes rippleAnim { to { transform: scale(5); opacity: 0; } }

/*  DIVIDER  */
.divider {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 22px 0;
    width: 100%;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 1px;
}

/*  CREATE ACCOUNT BUTTON -- black outlined pill  */
.btn-register {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    color: #1a1a1a;
    border: 1.5px solid #1a1a1a;
    padding: 0;
    height: 50px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    text-decoration: none;
    border-radius: var(--radius);
    transition: background .15s, color .15s;
}
.btn-register:hover { background: rgba(0, 0, 0, .05); color: #1a1a1a; }

/*  FOOTER  */
.form-footer {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.footer-logo img {
    height: 64px;
    width: auto;
    opacity: .65;
}
.footer-logo img:hover { opacity: .9; }

.footer-copy {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
}

/*  RESPONSIVE  */
@media (max-width: 820px) {
    body { flex-direction: column; overflow: auto; }
    .left-panel {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 40px 24px 32px;
    }
    .logo-wrap img { width: 160px; }
    .right-panel {
        flex: 1;
        padding: 40px 24px;
        justify-content: flex-start;
    }
}