/* ==============================================
   ULTRA PROFESSIONAL AUTH PAGE
   Split-Screen Modern Design
   ============================================== */

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

body.register-page {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    background: #0a0a0a !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Main Container */
.auth-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Branding */
.auth-left {
    flex: 1;
    background: linear-gradient(135deg, #1a0b2e 0%, #16213e 50%, #0f3460 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 0, 112, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.1); opacity: 0.5; }
}

.auth-left-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: translateX(5px);
}

.brand-logo i {
    font-size: 2rem;
    background: linear-gradient(135deg, #8b0070, #ff006e);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auth-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.auth-desc {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.auth-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: white;
    font-size: 1.1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border-left: 4px solid #8b0070;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(10px);
}

.feature-item i {
    font-size: 1.5rem;
    color: #8b0070;
}

/* Right Side - Form */
.auth-right {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.auth-right-content {
    width: 100%;
    max-width: 480px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
}

.auth-header p {
    font-size: 1rem;
    color: #666;
}

/* Alerts */
.alert {
    display: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.alert-success {
    background: linear-gradient(135deg, rgba(46, 204, 113, 0.1) 0%, rgba(39, 174, 96, 0.15) 100%);
    color: #27ae60;
    border-left: 4px solid #2ecc71;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(231, 76, 60, 0.1) 0%, rgba(192, 57, 43, 0.15) 100%);
    color: #e74c3c;
    border-left: 4px solid #e74c3c;
}

.alert i {
    margin-right: 0.5rem;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.form-group label i {
    color: #8b0070;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #8b0070;
    background: white;
    box-shadow: 0 0 0 4px rgba(139, 0, 112, 0.1);
}

.form-group input::placeholder {
    color: #aaa;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin: 0.5rem 0;
}

.form-check input[type="checkbox"] {
    width: 20px;
    height: 20px;
    border: 2px solid #d0d0d0;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 2px;
    flex-shrink: 0;
}

.form-check input[type="checkbox"]:checked {
    background: #8b0070;
    border-color: #8b0070;
}

.form-check label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    line-height: 1.5;
}

.form-check label a {
    color: #8b0070;
    text-decoration: none;
    font-weight: 600;
}

.form-check label a:hover {
    text-decoration: underline;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, #8b0070 0%, #6a0056 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(139, 0, 112, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #a0007d 0%, #8b0070 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 0, 112, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0 1.5rem;
    color: #999;
    font-size: 0.9rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.auth-divider span {
    padding: 0 1.5rem;
    font-weight: 500;
}

/* Google Button */
.btn-google {
    width: 100%;
    padding: 0.9rem;
    background: white;
    color: #444;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Footer */
.auth-footer {
    text-align: center;
    margin-top: 2rem;
    color: #666;
    font-size: 0.95rem;
}

.auth-footer a {
    color: #8b0070;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 968px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-left {
        min-height: 40vh;
        padding: 3rem 2rem;
    }
    
    .auth-title {
        font-size: 2rem;
    }
    
    .auth-right {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .auth-left {
        padding: 2rem 1.5rem;
    }
    
    .auth-title {
        font-size: 1.8rem;
    }
    
    .auth-desc {
        font-size: 1rem;
    }
    
    .feature-item {
        font-size: 0.95rem;
    }
    
    .auth-header h2 {
        font-size: 1.8rem;
    }
    
    .form-group input,
    .form-group select {
        padding: 0.8rem;
        font-size: 0.95rem;
    }
}

/* ==============================================
   MODAL STYLES FOR REGISTER CONTAINER
   ============================================== */

/* Modal Overlay Styles */
.register-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.register-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    max-width: 700px;
    width: 95%;
    max-height: 95vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.register-header {
    text-align: center;
    margin-bottom: 15px;
}

.brand-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.brand-section i {
    font-size: 28px;
    color: #e50914;
}

.brand-section h2 {
    color: #333;
    margin: 0;
    font-size: 24px;
}

.register-header h3 {
    color: #333;
    margin: 10px 0 5px 0;
    font-size: 20px;
}

.register-header p {
    color: #666;
    margin: 0;
    font-size: 14px;
}

.register-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 20px;
}

.register-form .form-check,
.register-form .btn-submit,
.register-form .auth-divider,
.register-form .btn-google {
    grid-column: 1 / -1;
}

.register-form .form-group {
    display: flex;
    flex-direction: column;
}

.register-form .form-group label {
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.register-form .form-group input,
.register-form .form-group select {
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.register-form .form-group input:focus,
.register-form .form-group select:focus {
    outline: none;
    border-color: #e50914;
}

.register-form .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 10px 0;
}

.register-form .form-check input[type="checkbox"] {
    margin-top: 3px;
}

.register-form .form-check label {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
}

.register-form .form-check a {
    color: #e50914;
    text-decoration: none;
}

.register-form .form-check a:hover {
    text-decoration: underline;
}

.register-form .btn-submit {
    background: #e50914;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.register-form .btn-submit:hover {
    background: #d40813;
}

.register-form .auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.register-form .auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.register-form .auth-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

.register-form .btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.register-form .btn-google:hover {
    border-color: #ccc;
    background: #f9f9f9;
}

.register-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.register-footer a {
    color: #e50914;
    text-decoration: none;
    font-weight: 600;
}

.register-footer a:hover {
    text-decoration: underline;
}

.register-container .alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.register-container .alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.register-container .alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .register-container {
        margin: 10px;
        padding: 20px;
        max-width: none;
        width: calc(100% - 20px);
        max-height: 98vh;
    }
    
    .register-form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .brand-section h2 {
        font-size: 20px;
    }
    
    .register-header h3 {
        font-size: 18px;
    }
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    margin: 10px 0;
    border-radius: 8px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    color: #28a745;
}

.alert i {
    font-size: 16px;
}
