/* Register Page CSS - Matching index.php layout */

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(180deg, #f7f8fa 0%, #eef1f4 100%);
    min-height: 100vh;
    height: 100%;
    color: #333;
    margin: 0;
    padding: 0;
}

/* Main content container - matching index.php */
.register-page-content {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
}

/* Floating shapes - matching index.php */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(0, 123, 255, 0.1), rgba(0, 123, 255, 0.05));
    animation: float 20s infinite linear;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 60px;
    height: 60px;
    top: 20%;
    right: 10%;
    animation-delay: 5s;
}

.shape:nth-child(3) {
    width: 100px;
    height: 100px;
    bottom: 10%;
    left: 20%;
    animation-delay: 10s;
}

.shape:nth-child(4) {
    width: 70px;
    height: 70px;
    bottom: 20%;
    right: 20%;
    animation-delay: 15s;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(120deg); }
    66% { transform: translateY(20px) rotate(240deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* Hero overlay - matching index.php */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.02) 100%);
    z-index: 2;
}

/* Centered Split Hero - matching index.php */
.center-hero {
    width: 100%;
    max-width: none;
    padding: 0;
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    align-items: stretch;
}

.split-panel {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 0;
    align-items: stretch;
    border-radius: 0;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
    width: 100vw;
    height: 100vh;
    margin: 0;
    padding: 0;
}

/* Visual panel - left side with branding */
.visual-panel {
    background: linear-gradient(180deg, rgba(30,24,25,0.95) 0%, rgba(14,10,11,0.9) 100%);
    color: #fff;
    padding: 0; /* remove padding so image reaches edges */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* overlay to help text readability */
.visual-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(6,6,6,0.28), rgba(6,6,6,0.36));
    z-index: 1;
}

.visual-image {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    z-index: 0;
    border-radius: 0;
}

.visual-inner {
    width: 100%;
    max-width: none;
    padding: 48px 36px 48px 36px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    gap: 8px;
}

.visual-brand {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: auto;
}

.visual-heading {
    font-size: 48px;
    line-height: 1.02;
    margin: 0 0 8px 0;
    color: #ffffff;
    font-weight: 700;
}

.visual-sub {
    color: rgba(255,255,255,0.85);
    margin-bottom: 24px;
    font-weight: 600;
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rocket-icon {
    width: 30px;
    height: 30px;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.brand-subtitle {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.visual-heading {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    line-height: 1.2;
}

.visual-sub {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
}

/* Registration panel - right side */
.signin-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.register-content {
    width: 100%;
    max-width: 400px;
}

.register-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: visible !important;
    position: relative !important;
}

.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.register-subtitle {
    color: #666;
    font-size: 0.95rem;
}

/* Form styling */
.form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
}

.form-control {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.mb-compact {
    margin-bottom: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    border-radius: 8px;
    padding: 12px 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
    color: white !important;
    cursor: pointer;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
    margin-top: 10px;
    margin-bottom: 10px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Form styling */
#registerForm {
    overflow: visible !important;
    position: relative !important;
    padding-bottom: 20px !important;
}
.alert {
    border-radius: 8px;
    border: none;
    padding: 16px;
    margin-bottom: 20px;
    text-align: center;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

/* Responsive design */
@media (max-width: 900px) {
    .split-panel {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 100vh;
        grid-auto-rows: auto auto;
    }

    .visual-panel {
        padding: 20px 16px;
        height: 40vh;
        min-height: 300px;
        max-height: 400px;
    }

    .visual-image {
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        transform: none;
    }

    .signin-panel {
        padding: 20px;
        height: auto;
        min-height: 60vh;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .visual-heading {
        font-size: 28px;
        text-align: left;
    }

    .visual-sub {
        font-size: 14px;
    }

    .register-card {
        margin-top: 0;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .register-card {
        padding: 20px;
        margin: 0;
        border-radius: 12px;
    }

    .visual-panel {
        padding: 15px;
        height: 35vh;
        min-height: 250px;
    }

    .signin-panel {
        padding: 15px;
        min-height: 65vh;
        max-height: none !important;
        overflow-y: auto !important;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 20px;
    }

    .register-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .register-subtitle {
        font-size: 0.9rem;
    }

    .btn-primary {
        padding: 14px 20px;
        font-size: 1rem;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .form-control {
        padding: 12px 16px;
        font-size: 16px; /* Prevents zoom on iOS */
    }

    .mb-compact {
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 576px) {
    .register-page-content {
        padding: 0;
    }

    .center-hero {
        padding: 0 10px;
    }

    .visual-panel {
        height: 30vh;
        min-height: 200px;
        padding: 10px;
    }

    .signin-panel {
        padding: 10px;
        min-height: 70vh;
        max-height: none !important;
        overflow-y: auto !important;
        display: flex;
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 15px;
    }

    .register-card {
        padding: 15px;
        border-radius: 8px;
    }

    .register-title {
        font-size: 1.3rem;
    }

    .visual-heading {
        font-size: 20px;
    }

    .visual-sub {
        font-size: 12px;
    }

    .btn-primary {
        padding: 12px 16px;
        font-size: 0.9rem;
        margin-top: 15px !important;
        margin-bottom: 15px !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}