﻿.register-container .register-back {
    position: absolute;
    top: 30px;
    left: 55%;
    display: inline-block;
    color: #ffffff;
    opacity: 0.85;
    text-decoration: none;
    z-index: 10;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 5px;
}

.register-container .register-back img {
    width: 16px;
    height: 16px;
}

.register-container .register-subtitle {
    max-width: 520px;
}

.register-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.register-form .form-row .register-input-container {
    width: 100%;
}

.register-form .form-row .register-input {
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .register-form .form-row { grid-template-columns: 1fr; }
}

.register-container .terms label {
    color: #ffffff;
}

.register-container {
    width: 100%;
    height: 100%;
    background-color: #438BFB;
    display: flex;
    color: white;
    font-family: TT Travels, Plus Jakarta Sans, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

.left-section {
    width: 50%;
    background-color: #ffffff;
    margin: 10px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.right-section {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.left-section-container {
    width: 100%;
    max-width: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7vh;
}

.left-section-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.right-section-container {
    width: 80%;
    max-width: 600px;
    padding: 7vh 20px;
}

.right-section-container a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.right-section-container a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.right-section-container p {
    margin: 0.5rem 0;
    text-align: center;
}

.left-texts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.register-title {
    font-weight: 600;
    font-size: clamp(30px, 5vw, 40px);
}
.register-subtitle {
    font-weight: 500;
    font-size: clamp(12px, 3vw, 16px);
    margin: 0;
}
.left-title {
    color: #438BFB;
    font-size: 48px;
    font-family: Plus Jakarta Sans;
    font-weight: 800;
}
.left-subtitle {
    color: #438BFB;
    font-size: 24px;
}

.register-form {
    margin-top: clamp(20px, 5vw, 40px);
}

.register-input-group {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    font-size: clamp(12px, 3vw, 16px);
    margin-bottom: clamp(4px, 1vw, 8px);
    margin-top: clamp(5px, 3vw, 16px);
}

.register-input-label {
    display: block;
    color: white;
    font-weight: 500;
    font-size: clamp(12px, 3vw, 16px);
    margin-bottom: 6px;
    text-align: left;
}

.register-input-container {
    position: relative;
    width: 100%;
}

.register-input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 2;
}

.register-input {
    width: 100%;
    padding: clamp(10px, 3vw, 16px);
    padding-left: 48px;
    border: none;
    border-radius: 12px;
    background-color: #f8f9fa;
    font-size: clamp(12px, 3vw, 16px);
    color: #333;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.register-input:focus {
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(67, 139, 251, 0.1);
}

.register-input::placeholder {
    color: #999;
    font-size: clamp(12px, 3vw, 16px);
}

.register-input:focus + .register-input-icon {
    color: #438BFB;
}

.custom-error {
    background: rgba(230, 57, 70, 0.9);  
    color: #fff;
    font-size: clamp(12px, 2.8vw, 15px);
    font-weight: 500;
    padding: 6px 12px;
    margin-top: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3); 
    border-radius: 8px;                        
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15); 
    display: inline-block;                    
    animation: fadeIn 0.3s ease-in-out;        
}
.custom-error:empty {
    display: none;
}

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

.register-btn-primary {
    background-color: #0000FF;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: clamp(10px, 3vw, 16px);
    margin-top: clamp(16px, 3vw, 20px);
    font-weight: 600;
    font-size: clamp(12px, 3vw, 16px);
    transition: all 0.3s ease;
}

.register-btn-primary:disabled {
    opacity: 0.5; 
    background-color: #0000FF; 
}


.register-btn-primary:hover {
    background-color: #3371d9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 139, 251, 0.3);
}

.register-checkbox {
    margin: 1.5rem 0;
}

.register-checkbox label {
    color: white;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.register-form-check-input {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 2px solid #ffffff;
    background-color: transparent;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.register-form-check-input:checked {
    background-color: #0000FF;
    border-color: #0000FF;
    position: relative;
}

.register-form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.register-form-check-input:hover {
    border-color: #0000FF;
    transform: scale(1.05);
}

.register-forgot-password {
    display: flex;
    justify-content: flex-end;
    margin-top: 6px;
}

.register-forgot-password a {
    color: #e3e7ff;
    font-size: clamp(12px, 3vw, 14px);
}

.register-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: clamp(8px, 1.5vw, 12px) 0;
}

.register-divider::before,
.register-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.6);
    margin: clamp(18px, 4vw, 24px) 0;
}

.register-divider span {
    color: #ffffff;
    opacity: 0.9;
    font-size: clamp(12px, 3vw, 16px);
}

.register-social-buttons {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 3vw, 14px);
}

.register-social-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border-radius: 12px;
    padding: clamp(10px, 3vw, 14px);
    background: #ffffff;
    color: #1a1a1a;
    border: none;
    cursor: pointer;
}

.register-social-button.google {
    position: relative;
    background: #ffffff;
    padding: clamp(10px, 3vw, 14px);
}

.register-social-button.google .social-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    pointer-events: none;
}

.social-button.google .social-visible span {
    font-size: clamp(12px, 3vw, 16px);
}

.register-social-button.google .google-invisible {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.register-social-button.google .google-invisible > div {
    width: 100% !important;
}

.register-social-button.facebook {
    background: #ffffff;
    padding: clamp(10px, 3vw, 14px);
}

.social-button.facebook span {
    font-size: clamp(12px, 3vw, 16px);
}

.register-social-button .social-icon {
    width: clamp(18px, 4vw, 24px);
}

.register-signup-text {
    padding-top: 16px;
    color: #e3e7ff;
    text-align: center;
    font-size: clamp(12px, 3vw, 16px);
}

.register-signup-link {
    color: #438BFB;
    font-weight: 600;
}

.mobile-danger-text {
    display: inline-block
}

.full-name-text-danger {
    display: none;
    gap: 25px;
}

@media (max-width: 768px) {
    .left-section {
        display: none;
    }
    .right-section {
        width: 100%;
    }
    .right-section-container {
        width: 90%;
        max-width: auto;
        text-align: center;
    }
    .register-container .register-back {
        position: static;
        left: 10%;
    }
    .mobile-danger-text {
        display: block;
    }
    
    .full-name-text-danger {
        display: none;
    }
}