/* ==========================================================================
   Santiago Ballpark - Dedicated Player Registration Page Stylesheet
   ========================================================================== */

:root {
    --blue-darker: #050d18;
    --blue-dark: #091526;
    --blue-medium: #112540;
    --blue-light: #1b3860;
    --orange-primary: #ff5e00;
    --orange-hover: #e05300;
    --yellow-accent: #f5b301;
    --yellow-light: #ffcb3d;
    --white: #ffffff;
    --gray-light: #f4f6f9;
    --gray-muted: #8fa0b5;
    --glass-bg: rgba(9, 21, 38, 0.75);
    --glass-border: rgba(255, 94, 0, 0.25);
    --shadow-glow: 0 0 25px rgba(255, 94, 0, 0.4);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Outfit', 'Montserrat', sans-serif;
    background-color: var(--blue-darker);
    background-image: radial-gradient(circle at top right, var(--blue-dark) 0%, var(--blue-darker) 100%);
    color: var(--white);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header logo link styles */
.header-bar {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(27, 56, 96, 0.4);
    background: rgba(5, 13, 24, 0.9);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.logo-container {
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-decoration: none;
}

.logo-text-santiago {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 0.15em;
}

.logo-text-ballpark {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: var(--orange-primary);
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.btn-back-home {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--blue-light);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-back-home:hover {
    background: var(--blue-light);
    border-color: var(--orange-primary);
    transform: translateX(-3px);
}

/* Page Layout Container */
.main-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    position: relative;
    overflow: hidden;
}

.bg-decor-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/uploads/register_bg.png');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    mix-blend-mode: overlay;
    pointer-events: none;
    z-index: 0;
}

.registration-card-container {
    width: 100%;
    max-width: 1200px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    display: grid;
    grid-template-columns: 1.1fr 1.3fr;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Left Column: Visual Flyer Sidebar */
.visual-sidebar {
    background-image: linear-gradient(rgba(5, 13, 24, 0.45), rgba(5, 13, 24, 0.85)), url('/uploads/register_bg.png');
    background-size: cover;
    background-position: center;
    padding: 3.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid rgba(27, 56, 96, 0.4);
}

.visual-sidebar::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, var(--blue-darker) 0%, transparent 100%);
    pointer-events: none;
}

.sidebar-content {
    position: relative;
    z-index: 2;
}

.camp-badge {
    background: rgba(255, 94, 0, 0.2);
    border: 1px solid var(--orange-primary);
    color: var(--orange-primary);
    font-weight: 800;
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.sidebar-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.sidebar-title span {
    color: var(--yellow-accent);
}

.sidebar-subtitle {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.sidebar-desc {
    color: var(--gray-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Flyer Circular Features List */
.features-mini-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

.mini-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-bullet {
    background: linear-gradient(135deg, var(--orange-primary), var(--yellow-accent));
    height: 36px;
    width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--blue-darker);
    box-shadow: 0 4px 10px rgba(255, 94, 0, 0.3);
}

.feature-text {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Sidebar Footer Details */
.sidebar-footer {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
    background: rgba(9, 21, 38, 0.8);
    border: 1px solid var(--blue-light);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sidebar-footer i {
    color: var(--orange-primary);
    font-size: 1.4rem;
}

.sidebar-footer .contact-info {
    display: flex;
    flex-direction: column;
}

.sidebar-footer .label {
    font-size: 0.7rem;
    color: var(--gray-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar-footer .phone-val {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--yellow-accent);
}

/* Right Column: Form Area */
.form-area {
    padding: 3.5rem 3rem;
    background: rgba(9, 21, 38, 0.45);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.form-header p {
    color: var(--gray-muted);
    font-size: 0.95rem;
}

/* Form Styles */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gray-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.form-group label i {
    color: var(--orange-primary);
    font-size: 0.85rem;
}

.form-group input,
.form-group select {
    background: rgba(17, 37, 64, 0.6);
    border: 1px solid var(--blue-light);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--white);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--orange-primary);
    background: rgba(17, 37, 64, 0.9);
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.15);
}

.form-group input::placeholder {
    color: rgba(143, 160, 181, 0.5);
}

.form-group select option {
    background: var(--blue-dark);
    color: var(--white);
}

.btn-submit-container {
    margin-top: 2rem;
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--orange-primary), #ff8800);
    color: var(--white);
    border: none;
    border-radius: 50px;
    padding: 1.1rem;
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 94, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-normal);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Success Overlay card */
.success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blue-darker);
    z-index: 10;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.success-overlay.active {
    display: flex;
}

.success-card {
    max-width: 550px;
    text-align: center;
    background: var(--blue-dark);
    border: 1px solid var(--orange-primary);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-glow);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    font-size: 4rem;
    color: var(--yellow-accent);
    margin-bottom: 1rem;
}

.success-card h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--white);
}

.success-card p {
    color: var(--gray-muted);
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
}

.summary-box {
    background: rgba(17, 37, 64, 0.6);
    border: 1px solid var(--blue-light);
    border-radius: 8px;
    padding: 1.2rem;
    text-align: left;
    margin-bottom: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(27, 56, 96, 0.3);
    padding-bottom: 0.4rem;
}

.summary-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.summary-label {
    color: var(--gray-muted);
    font-weight: 600;
}

.summary-val {
    color: var(--white);
    font-weight: 700;
}

/* Footer Section */
.footer-bar {
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid rgba(27, 56, 96, 0.4);
    background: rgba(5, 13, 24, 0.9);
    color: var(--gray-muted);
    font-size: 0.85rem;
}

.footer-bar a {
    color: var(--orange-primary);
    text-decoration: underline;
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .registration-card-container {
        grid-template-columns: 1fr;
    }
    .visual-sidebar {
        padding: 2.5rem;
        border-right: none;
        border-bottom: 1px solid rgba(27, 56, 96, 0.4);
    }
    .visual-sidebar::after {
        height: 100%;
        background: linear-gradient(to top, rgba(9, 21, 38, 0.95) 0%, rgba(9, 21, 38, 0.6) 100%);
    }
    .sidebar-footer {
        margin-top: 2rem;
    }
    .form-area {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full-width {
        grid-column: span 1;
    }
    .form-area {
        padding: 2rem 1.2rem;
    }
    .success-card {
        padding: 1.5rem;
    }
}
