/* =========================================================
   GLOBAL RESET
========================================================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, #f3f4f8, #eef1f7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #222;
}

/* =========================================================
   AUTH WRAPPER
========================================================= */
.auth-wrapper {
    width: 100%;
    padding: 32px;
    display: flex;
    justify-content: center;
}

/* =========================================================
   AUTH CARD (AUTO HEIGHT – NO CLIPPING)
========================================================= */
.auth-card {
    width: 100%;
    max-width: 1300px;
    background: #ffffff;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow:
        0 30px 60px rgba(0,0,0,0.12),
        0 10px 20px rgba(0,0,0,0.08);
}

/* =========================================================
   LEFT PANEL
========================================================= */
.auth-left {
    width: 45%;
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #ffffff;
    padding: 70px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
}

.brand-logo {
    max-width: 120px;
    margin-bottom: 25px;
}

.auth-left p {
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0.9;
}

.outline-btn {
    padding: 14px 40px;
    border-radius: 40px;
    border: 2px solid #f5c400;
    color: #f5c400;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 1px;
    transition: 0.3s;
}

.outline-btn:hover {
    background: #f5c400;
    color: #000;
}

/* =========================================================
   RIGHT PANEL (SCROLL SAFE)
========================================================= */
.auth-right {
    width: 55%;
    padding: 55px 60px;
    overflow-y: auto;
}

.auth-right h3 {
    font-size: 30px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #000;
}

.or-text {
    color: #777;
    margin-bottom: 30px;
    display: block;
}

/* =========================================================
   REGISTER GRID (3 COLS DESKTOP)
========================================================= */
.register-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

/* =========================================================
   INPUTS
========================================================= */
.register-grid input {
    width: 100%;
    height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    border: 1.5px solid #d6d9e0;
    font-size: 15px;
    outline: none;
    transition: 0.25s ease;
}

.register-grid input:focus {
    border-color: #f5c400;
    box-shadow: 0 0 0 3px rgba(245,196,0,0.25);
}

/* =========================================================
   PASSWORD
========================================================= */
.password-wrapper {
    position: relative;
}

.password-wrapper i {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
}

.password-wrapper i:hover {
    color: #f5c400;
}

/* =========================================================
   PHONE INPUT (intl-tel-input FIX)
========================================================= */
.iti {
    width: 100%;
}

.iti input {
    height: 52px !important;
    border-radius: 14px !important;
    padding-left: 70px !important;
}

/* =========================================================
   SUBMIT BUTTON (FULL ROW)
========================================================= */
.register-actions {
    grid-column: 1 / -1;
    margin-top: 10px;
}

.primary-btn {
    width: 100%;
    height: 54px;
    border-radius: 40px;
    border: none;
    background: linear-gradient(135deg, #f5c400, #d4aa00);
    color: #000;
    font-weight: 900;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(245,196,0,0.45);
}

/* =========================================================
   SIGN IN LINK (UPDATED STYLE ONLY)
========================================================= */
.auth-right p {
    margin-top: 26px;
    text-align: center;
    font-size: 15px;
    color: #555;
}

.auth-right p a {
    color: #f5c400;
    font-weight: 800;
    text-decoration: none;
    margin-left: 4px;
    position: relative;
}

.auth-right p a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0;
    height: 2px;
    background: #f5c400;
    transition: width 0.3s ease;
}

.auth-right p a:hover::after {
    width: 100%;
}

/* =========================================================
   ALERTS
========================================================= */
.small-alert {
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 18px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

/* Tablets */
@media (max-width: 1024px) {
    .auth-card {
        flex-direction: column;
    }

    .auth-left,
    .auth-right {
        width: 100%;
    }

    .register-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phones */
@media (max-width: 600px) {
    .auth-wrapper {
        padding: 16px;
    }

    .auth-left {
        padding: 50px 30px;
    }

    .auth-right {
        padding: 40px 30px;
    }

    .register-grid {
        grid-template-columns: 1fr;
    }

    .register-actions {
        grid-column: auto;
    }
}
