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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
}

/* ================= HEADER STYLES ================= */

.nav-link {
    color: #333;
}

.nav-link:hover,
.nav-link.active {
    color: #0d6efd;
    background-color: #f1f1f1;
    border-radius: 5px;
}

.btn-dark {
    border-radius: 20px;
    padding: 0.4rem 1rem;
}

/* ================= MAIN CONTENT STYLES ================= */
.main-content {
    padding: 40px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.register-container {
    display: flex;
    max-width: 1200px;
    width: 100%;
    min-height: 600px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    border-radius: 20px;
    overflow: hidden;
}

.left-panel {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.logo-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    padding: 40px;
}

.right-panel {
    flex: 1;
    padding: 50px 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    overflow-y: auto;
}

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    line-height: 1.2;
}

.form-title .highlight {
    color: #29b6f6;
}

.form-subtitle {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

/* ================= FORM STYLES ================= */
#registrationForm {
    width: 100%;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
}

.form-group {
    flex: 1;
    margin-bottom: 25px;
}

.form-row .form-group {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #e74c3c;
    margin-left: 2px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea{
    width: 100%;
    padding: 16px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus{
    outline: none;
    border-color: #29b6f6;
    background: white;
    box-shadow: 0 0 0 3px rgba(41, 182, 246, 0.1);
    transform: translateY(-1px);
}

.password-toggle {
    position: relative;
}

.password-toggle input {
    padding-right: 50px;
}

.toggle-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    color: #666;
    transition: color 0.3s ease;
}

.toggle-btn:hover {
    color: #29b6f6;
}

.error-message {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
    min-height: 18px;
}

.checkbox-group {
    margin: 30px 0;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #29b6f6;
}

.checkbox-label {
    font-size: 14px;
    line-height: 1.5;
    color: #555;
}

.checkbox-label a {
    color: #29b6f6;
    text-decoration: none;
}

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

.privacy-text {
    background: #f8f9fa;
    border-left: 4px solid #29b6f6;
    padding: 20px;
    margin: 25px 0;
    border-radius: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.privacy-text a {
    color: #29b6f6;
    text-decoration: none;
}

.privacy-text a:hover {
    text-decoration: underline;
}

a.submit-btn {
    width: 100%;
    padding: 18px;
    display: inline-block;
    background: linear-gradient(135deg, #29b6f6 0%, #1e88e5 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    margin: 20px 0 20px 0;
    position: relative;
    overflow: hidden;
    text-decoration: none;

}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(41, 182, 246, 0.4);
}

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

.login-link {
    text-align: center;
    margin-top: 30px;
    color: #666;
    font-size: 15px;
}

.login-link a {
    color: #29b6f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.login-link a:hover {
    text-decoration: underline;
    color: #1e88e5;
}

/* ================= REMEMBER ME STYLES ================= */
.remember-me {
    display: flex;
    align-items: center;
    margin: 20px 0;
    gap: 8px;
}

.remember-me label {
    margin-bottom: 0;
    cursor: pointer;
}

.forgot-password {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 20px;
}

.forgot-password a {
    color: #29b6f6;
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

/* ================= SUCCESS MESSAGE ================= */
.success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #155724;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================= RESPONSIVE STYLES ================= */
@media (max-width: 768px) {
    .main-content {
        padding: 20px 10px;
    }

    .register-container {
        flex-direction: column;
        max-width: 500px;
        min-height: auto;
    }

    .left-panel {
        padding: 40px 20px;
        min-height: 200px;
    }

    .right-panel {
        padding: 40px 30px;
    }

    .form-title {
        font-size: 26px;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-row .form-group {
        margin-bottom: 25px;
    }
}

/* ================= ANIMATIONS ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-container {
    animation: fadeInUp 0.6s ease-out;
}

.form-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
