/* assets/css/register.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:     #e8e8e8;
    --text:   #1a1a1a;
    --muted:  #737373;
    --error:  #ed4956;
    --font:   'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --ease:   cubic-bezier(.4,0,.2,1);
}

html, body {
    min-height: 100%;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 40px 16px 60px;
}

/*  RE-ENABLE CARET & SELECTION ONLY IN INPUTS  */
input, textarea, select {
    cursor: text;
    caret-color: var(--text);       /*  blinking caret back inside fields only */
    user-select: text;
    -webkit-user-select: text;
}

select { cursor: pointer; }

/*  POINTER FOR CLICKABLES  */
button, a, .pw-toggle, .btn-submit, .btn-login, .back-btn { cursor: pointer; }
.btn-submit:disabled { cursor: default; }

/*  CARD  */
.card {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 850px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.13);
    overflow: hidden;
    animation: fadeDown .5s var(--ease) both;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/*  CARD HEADER  */
.card-header {
    background: var(--white);
    padding: 0;
    position: relative;
    text-align: center;
}

.back-btn {
    position: absolute;
    top: 18px; left: 18px;
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    color: var(--text);
    text-decoration: none;
    font-size: 22px;
    z-index: 10;
    transition: background .15s;
}
.back-btn:hover { background: rgba(0,0,0,0.06); color: var(--text); }

.header-inner { padding: 48px 40px 36px; }

.card-logo {
    height: 240px;
    width: auto;
    display: block;
    margin: 0 auto;
    background: var(--white);
}

.card-title {
    font-size: 26px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 6px;
    letter-spacing: -.4px;
}

.card-sub {
    font-size: 15px;
    color: var(--muted);
    line-height: 1.5;
}

/*  CARD BODY  */
.card-body { padding: 36px 45px 40px; }

/*  ALERTS  */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 12px;
    padding: 13px 16px;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.45;
}
.alert i { margin-top: 1px; flex-shrink: 0; font-size: 16px; }

.alert-error {
    background: #fff0f1;
    border: 1px solid #ffcdd2;
    color: var(--error);
    animation: shake .35s var(--ease);
}
.alert-success {
    background: #f0fff6;
    border: 1px solid #b2f5c8;
    color: #1a7a3c;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    20%      { transform: translateX(-7px); }
    40%      { transform: translateX(7px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

/*  FORM GROUPS  */
.form-group { margin-bottom: 18px; }

.form-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.form-label i { font-size: 16px; color: var(--muted); }

/*  INPUTS  */
.input-wrap { position: relative; }

.form-input {
    width: 100%;
    height: 56px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0 52px 0 22px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    outline: none;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form-input::placeholder { color: #b8b8b8; font-weight: 400; }
.form-input:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}
.form-input.has-left-icon { padding-left: 48px; padding-right: 48px; }

.input-icon {
    position: absolute;
    left: 20px; top: 50%;
    transform: translateY(-50%);
    color: #c0c0c0;
    font-size: 18px;
    pointer-events: none;
}

.pw-toggle {
    position: absolute;
    right: 18px; top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--muted);
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex; align-items: center;
    transition: color .15s;
}
.pw-toggle:hover { color: var(--text); }

/*  SELECT  */
.form-select {
    width: 100%;
    height: 56px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    padding: 0 48px 0 22px;
    font-size: 15px;
    font-family: var(--font);
    color: var(--text);
    background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23737373' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 20px center;
    appearance: none;
    outline: none;
    cursor: pointer;
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.form-select:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(0,0,0,.08);
}

.field-note {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
    padding-left: 8px;
    min-height: 18px;
}

/*  DIVIDER  */
.divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0 20px;
}
.divider-line { flex: 1; height: 1px; background: var(--border); }
.divider-text { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 1px; }

/*  BUTTONS  */
.btn-submit,
.btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 54px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font);
    cursor: pointer;
    letter-spacing: .2px;
    text-decoration: none;
    transition: background .15s, border-color .15s;
}

.btn-submit {
    background: #1a1a1a;
    color: #fff;
    border: none;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}
.btn-submit:hover  { background: #333333; }
.btn-submit:active { background: #000000; }

.btn-login {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-login:hover { border-color: #a8a8a8; background: #f7f7f7; color: var(--text); }

/* Ripple */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.3);
    transform: scale(0);
    animation: ripple .5s linear;
    pointer-events: none;
}
@keyframes ripple { to { transform: scale(5); opacity: 0; } }

/*  FOOTER  */
.footer {
    margin-top: 24px;
    text-align: center;
    font-size: 12px;
    color: #aaa;
    line-height: 1.8;
}
.footer-logo {
    display: block;
    height: 36px;
    width: auto;
    opacity: .4;
    margin: 0 auto 8px;
    transition: opacity .2s;
}
.footer-logo:hover { opacity: .7; }

/*  RESPONSIVE  */
@media (max-width: 680px) {
    .card-body    { padding: 28px 24px 32px; }
    .header-inner { padding: 40px 24px 28px; }
}