/* Register Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    height: 100vh;
    overflow: hidden;
}

/* Background and Animation */
.register-container {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.register-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #764ba2 100%);
    z-index: -2;
}

.register-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.9));
    z-index: -1;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 80%;
    animation-delay: -5s;
}

.shape-3 {
    width: 60px;
    height: 60px;
    top: 20%;
    left: 60%;
    animation-delay: -10s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 20%;
    animation-delay: -2s;
}

.shape-5 {
    width: 70px;
    height: 70px;
    top: 40%;
    left: 90%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.7; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 1; }
    50% { transform: translateY(0px) rotate(180deg); opacity: 0.7; }
    75% { transform: translateY(-10px) rotate(270deg); opacity: 1; }
}

/* Welcome Section */
.welcome-section {
    position: relative;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
}

.welcome-content {
    max-width: 500px;
    text-align: left;
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 40px;
}

.brand-logo i {
    font-size: 3rem;
    margin-right: 15px;
    color: #ffd700;
}

.brand-logo h2 a {
    font-weight: 600;
    font-size: 1.8rem;
    color: white;
    text-decoration: none;
}

.brand-logo h2 a:hover {
    color: white;
    text-decoration: none;
}

.brand-logo .logo-img {
    height: 60px;
}

.welcome-text h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.welcome-text .lead {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.features {
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px 0;
}

.feature-item i {
    font-size: 1.5rem;
    margin-right: 20px;
    color: #ffd700;
    width: 30px;
}

.feature-item span {
    font-size: 1rem;
    opacity: 0.9;
}

/* Return link button */
.btn-return {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.btn-return:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Register Form Section */
.register-form-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.register-form-container {
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
    max-height: 95vh;
}

/* Mobile Brand */
.mobile-brand {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
}

.mobile-brand i {
    font-size: 3rem;
    margin-bottom: 10px;
    display: block;
}

.mobile-brand h3 a {
    font-weight: 600;
    font-size: 1.5rem;
}

.mobile-brand h3 a:hover {
    text-decoration: none;
}

.mobile-brand .logo-img {
    height: 50px;
}

/* Form Header */
.register-form-header {
    text-align: center;
    margin-bottom: 20px;
}

.register-form-header h4 {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.register-form-header p {
    color: #666;
    font-size: 1rem;
}

/* Form Styles */
.register-form .form-group {
    margin-bottom: 15px;
}

.register-form label {
    font-weight: 500;
    color: #555;
    margin-bottom: 8px;
}

.register-form .form-control {
    height: 50px;
    border-radius: 10px;
    border: 2px solid #e1e5e9;
    font-size: 1rem;
    transition: all 0.3s ease;
    padding-left: 15px;
}

.register-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.register-form .input-group-text {
    background: #f8f9fa;
    border: 2px solid #e1e5e9;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: #666;
}

.register-form .input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.register-form .input-group .input-group-append .btn {
    border-radius: 0 10px 10px 0;
    border: 2px solid #e1e5e9;
    border-left: none;
}

.register-form .input-group .form-control:focus + .input-group-append .btn {
    border-color: #667eea;
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
}

.terms-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-link:hover {
    color: #764ba2;
    text-decoration: none;
}

/* Datepicker Styles */
.datepicker-dropdown {
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #e1e5e9;
}

.datepicker table tr td.active.active,
.datepicker table tr td.active:hover.active {
    background-color: #667eea;
}

/* Buttons */
.btn-register {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-register:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    color: white;
}

.btn-register:active {
    transform: translateY(0);
}

.btn-google {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    background: white;
    border: 2px solid #e1e5e9;
    color: #555;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.btn-google i {
    font-size: 1.2rem;
    margin-right: 10px;
    color: #db4437;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #db4437;
    color: #db4437;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(219, 68, 55, 0.2);
}

/* Divider */
.divider {
    text-align: center;
    margin: 15px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #666;
    font-size: 0.9rem;
    position: relative;
}

/* Login Link */
.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link p {
    color: #666;
    margin: 0;
}

.login-link a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    color: #764ba2;
    text-decoration: none;
}

/* Modals and Alerts */
.success-icon i {
    font-size: 4rem;
    margin-bottom: 20px;
}

#errorAlert {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    min-width: 300px;
    border-radius: 10px;
}

/* Loading State */
.btn-loading {
    display: none;
    align-items: center;
    justify-content: center;
}

.btn-loading.d-flex {
    display: flex !important;
}

.btn-text,
.btn-loading {
    width: 100%;
    text-align: center;
}

/* Form Validation */
.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    display: block;
    margin-top: 5px;
    font-size: 0.875rem;
    color: #dc3545;
}

/* Terms Modal */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom-color: #e1e5e9;
}

.modal-title {
    font-weight: 600;
    color: #333;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .welcome-section {
        display: none;
    }
    
    .register-form-section {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    
    .register-form-container {
        margin: 20px;
        max-width: none;
    }
    
    body {
        overflow: auto;
    }
}

@media (max-width: 576px) {
    .register-form-container {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .welcome-text h1 {
        font-size: 2.5rem;
    }
    
    .brand-logo i {
        font-size: 2.5rem;
    }
}

/* Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-form-container {
    animation: slideInUp 0.6s ease-out;
}

.welcome-content {
    animation: slideInUp 0.8s ease-out;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #764ba2;
}
