@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    --primary: #d83b3b;
    --primary-dark: #b72d2d;
    --background: #f5f7fb;
    --text: #202020;
    --text-light: #777;
    --border: #ececec;
    --shadow: 0 10px 30px rgba(0, 0, 0, .06);
    --bg-panel: #fdf1f1;
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
}

.auth-shell {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    max-width: 1180px;
    width: 100%;
    background: #fff;
    border-radius: 22px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* ===================== Form Panel ===================== */

.form-panel {
    padding: 48px 56px;
}

.form-panel-inner {
    max-width: 460px;
    margin: 0 auto;
}

.brand-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.brand-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.brand-text h1 {
    font-size: 20px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.brand-text p {
    font-size: 12px;
    color: var(--text-light);
}

.heading-block {
    margin-bottom: 20px;
}

.heading-block h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.heading-block p {
    font-size: 14px;
    color: var(--text-light);
}

.form-error-box {
    background: #fdeaea;
    border: 1px solid #f3b9b9;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.form-error-box p {
    color: var(--primary-dark);
    font-size: 13px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}

.req {
    color: var(--primary);
}

.field input,
.field select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--text);
    background: #fff;
    outline: none;
    transition: border-color .15s ease;
}

.field input::placeholder {
    color: #a3a3a3;
}

.field input:focus,
.field select:focus {
    border-color: var(--primary);
}

.field select {
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' fill-rule='evenodd'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.field-error {
    color: var(--primary-dark);
    font-size: 12px;
    margin-top: 4px;
}

.mobile-input {
    display: flex;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
}

.mobile-input .country-code {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    border-right: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-light);
    background: #fafafa;
}

.mobile-input input {
    border: none;
    border-radius: 0;
}

.mobile-input input:focus {
    border: none;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-right: 42px;
}

.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    cursor: pointer;
    font-size: 14px;
}

.section-label {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0 18px;
}

.terms-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text-light);
    margin: 4px 0 6px;
    cursor: pointer;
}

.terms-row input {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.terms-row a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.terms-row a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    margin-top: 18px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 12px 25px rgba(216, 59, 59, .25);
    transition: transform .2s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
}

.switch-auth {
    text-align: center;
    font-size: 13px;
    color: var(--text-light);
    margin-top: 18px;
}

.switch-auth a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

/* ===================== Showcase Panel ===================== */

.showcase-panel {
    position: relative;
    background: var(--bg-panel);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* ==========================================
   SHOWCASE SLIDESHOW — university photos
========================================== */

.showcase-panel{
    padding:0;
    overflow:hidden;
    position:relative;
    display:block;
}

.slideshow-wrap{
    position:absolute;
    inset:0;
    z-index:0;
    background:transparent;
}

.slide{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center;
    opacity:0;
    transition:opacity 1s ease;
    will-change:opacity;
}

.slide.active{
    opacity:1;
}

.slide-overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(180deg, rgba(90,10,10,.15) 0%, rgba(60,8,8,.35) 60%, rgba(25,3,3,.82) 100%);
    z-index:1;
}

/* ==========================================
   ARROWS — now functional, sit over the photo
========================================== */

.slideshow-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,.18);
    backdrop-filter:blur(6px);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    z-index:3;
    font-size:15px;
    transition:.2s;
}

.slideshow-arrow:hover{
    background:rgba(255,255,255,.32);
}

.slideshow-arrow-left{ left:18px; }
.slideshow-arrow-right{ right:18px; }

/* ==========================================
   DOTS — now sit on top of the photo, near the bottom
========================================== */

.carousel-dots{
    position:absolute;
    bottom:24px;
    left:0;
    right:0;
    z-index:3;
    display:flex;
    justify-content:center;
    gap:8px;
}

.carousel-dots .dot{
    width:8px;
    height:8px;
    border-radius:50%;
    background:rgba(255,255,255,.45);
    cursor:pointer;
    transition:.25s;
    border:none;
    padding:0;
}

.carousel-dots .dot.active{
    background:#fff;
    width:22px;
    border-radius:6px;
}

/* ==========================================
   CAPTION — sits below the photo panel, on solid red
========================================== */

.showcase-caption{
    position:absolute;
    bottom:60px;
    left:0;
    right:0;
    z-index:2;
    text-align:center;
    max-width:340px;
    margin:0 auto;
    padding:0 40px;
}

.showcase-caption h3{
    color:#fff;
    font-size:19px;
    font-weight:800;
    margin-bottom:8px;
    text-shadow:0 2px 10px rgba(0,0,0,.5);
}

.showcase-caption p{
    color:rgba(255,255,255,.9);
    font-size:13px;
    line-height:1.5;
    text-shadow:0 2px 8px rgba(0,0,0,.4);
}
/* ===================== Responsive ===================== */

@media (max-width: 900px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .showcase-panel {
        display: none;
    }

    .form-panel {
        padding: 36px 24px;
    }

    .field-row {
        grid-template-columns: 1fr;
    }
}

.profile-pic-field{ margin-bottom:20px; }

.register-pic-upload-row{
    display:flex;
    align-items:center;
    gap:16px;
}

.register-pic-preview{
    width:60px;
    height:60px;
    border-radius:50%;
    overflow:hidden;
    border:2px solid var(--border);
    flex-shrink:0;
}

.register-pic-preview img{
    width:100%;
    height:100%;
    object-fit:cover;
}

.register-upload-btn{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--primary);
    color:#fff;
    padding:10px 18px;
    border-radius:10px;
    font-weight:700;
    font-size:13px;
    cursor:pointer;
    transition:.2s;
}

.register-upload-btn:hover{ background:var(--primary-dark); }