/* ===================================
   User Registration Desktop Styles
   =================================== */

:root {
    --primary-red: #dc143c;
    --primary-dark: #8b0000;
    --deep-red: #800000;
    --white: #ffffff;
    --light-gray: #f5f5f5;
    --border-gray: #ddd;
    --text-dark: #333;
    --text-light: #666;
    --error-red: #d32f2f;
    --error-bg: #ffebee;
    --success-green: #2e7d32;
    --success-bg: #e8f5e9;
    --shadow: rgba(0, 0, 0, 0.1);
}

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

body.device-desktop {
    font-family: 'Arial', 'Helvetica', sans-serif;
    height: 100vh;
    overflow: hidden;
    background: var(--light-gray);
}

/* ===================================
   Split Container
   =================================== */

.register-split-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ===================================
   LEFT SIDE - Slideshow
   =================================== */

.showcase-side {
    width: 50%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

/* Slide Overlay */
.slide-overlay {
    background: transparent;
}

/* Slide Content */
.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--text-dark);
    padding: 40px;
    max-width: 600px;
    
    /* Glassmorphism effect */
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.slide-content h2 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

.slide-content p {
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
}

/* Slideshow Navigation Dots */
.slide-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid var(--white);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

.dot.active {
    width: 32px;
    border-radius: 6px;
    background: var(--white);
}

/* ===================================
   RIGHT SIDE - Registration Form
   =================================== */

.form-side {
    width: 50%;
    height: 100vh;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-y: auto;
}

.form-wrapper {
    width: 100%;
    max-width: 480px;
    padding: 40px 30px;
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 32px;
    color: var(--primary-red);
    margin-bottom: 8px;
    font-weight: 700;
}

.form-header .subtitle {
    color: var(--text-light);
    font-size: 15px;
}

/* Alert Messages */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background-color: var(--error-bg);
    color: var(--error-red);
    border: 1px solid var(--error-red);
}

.alert-success {
    background-color: var(--success-bg);
    color: var(--success-green);
    border: 1px solid var(--success-green);
}

/* Form Styles */
.register-form {
    width: 100%;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-gray);
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-red);
    box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.1);
}

.form-control::placeholder {
    color: #999;
}

/* Password Wrapper */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-control {
    padding-right: 45px;
}

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

.toggle-password:hover {
    color: var(--primary-red);
}

/* Register Button */
.btn-register {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-red);
    color: var(--white);
}

.btn-register:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 20, 60, 0.3);
}

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

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--border-gray);
}

.form-footer p {
    color: var(--text-light);
    font-size: 14px;
    margin: 0;
}

.form-footer a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
}

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

/* ===================================
   Responsive Adjustments
   =================================== */

@media (max-height: 800px) {
    .form-wrapper {
        padding: 30px 25px;
    }
    
    .form-header h2 {
        font-size: 28px;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-control {
        padding: 10px 12px;
    }
    
    .slide-content h2 {
        font-size: 36px;
    }
    
    .slide-content p {
        font-size: 16px;
    }
}

/* Scrollbar Styling for Form Side */
.form-side::-webkit-scrollbar {
    width: 8px;
}

.form-side::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.form-side::-webkit-scrollbar-thumb {
    background: var(--border-gray);
    border-radius: 4px;
}

.form-side::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}