:root {
    --primary-blue: #0d6efd;
    --dark-blue: #0a58ca;
    --text-gray: #6c757d;
    --input-border: #ced4da;
    --success-green: #198754;
    --error-red: #dc3545;
}

 body {
    font-family: 'Sarabun', sans-serif;
    background-color: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
}

.main-card {
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    width: 900px;
    max-width: 95%;
    position: relative;
    min-height: 550px;
}

/* --- Left Side (Blue) --- */
.left-side {
    background: linear-gradient(135deg, #1e5cc5 0%, #0d47a1 100%);
    color: white;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px;
    z-index: 1;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    color: #1e5cc5;
    font-size: 40px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.welcome-text {
    font-size: 1.2rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.description {
    font-size: 0.8rem;
    opacity: 0.8;
    line-height: 1.6;
    max-width: 80%;
    margin-bottom: 40px;
}

.footer-credits {
    position: absolute;
    bottom: 20px;
    font-size: 0.65rem;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Right Side (White) --- */
.right-side {
    padding: 50px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    color: #333;
    font-weight: 600;
    margin-bottom: 40px;
    text-align: center; 
}

@media (max-width: 768px) {
    .form-header { text-align: center; }
}

.custom-input-group {
    position: relative;
    margin-bottom: 25px;
}

.custom-input-group label {
    display: block;
    font-weight: 600;
    color: #444;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.custom-input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #e0e0e0;
    padding: 10px 0;
    outline: none;
    font-size: 0.9rem;
    transition: border-color 0.3s;
    color: #555;
    background: transparent;
}

.custom-input:focus {
    border-bottom-color: #1e5cc5;
}

.custom-input::placeholder {
    color: #ccc;
    font-weight: 300;
}

/* Validation Styles */
.check-icon {
    position: absolute;
    right: 0;
    bottom: 10px;
    color: #1e5cc5;
    /* Hidden by default */
    opacity: 0; 
    transform: scale(0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

/* State: Valid */
.custom-input-group.valid .check-icon {
    opacity: 1;
    transform: scale(1);
    color: #1e5cc5; /* Blue as per design, or use var(--success-green) if preferred */
}

.custom-input-group.valid .custom-input {
    border-bottom-color: #1e5cc5;
}

/* State: Invalid (Optional: Add red border) */
.custom-input-group.invalid .custom-input {
    border-bottom-color: var(--error-red);
}

/* Custom Checkbox */
.terms-check {
    display: flex;
    align-items: center;
    font-size: 0.8rem;
    color: #777;
    margin-bottom: 30px;
}

.terms-check input[type="checkbox"] {
    margin-right: 10px;
    width: 16px;
    height: 16px;
    accent-color: #0d47a1; 
    cursor: pointer;
}

.terms-check a {
    color: #1e5cc5;
    text-decoration: none;
    font-weight: 600;
    margin-left: 3px;
}

/* Buttons Container */
.btn-container {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-custom {
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 500;
    font-size: 1rem;
    min-width: 120px;
    transition: all 0.3s ease;
}

.btn-primary-custom {
    background: linear-gradient(to right, #1e5cc5, #0d47a1);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(30, 92, 197, 0.4);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 92, 197, 0.5);
    color: white;
}

/* Disabled button style */
.btn-primary-custom:disabled {
    background: #ccc;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid #e0e0e0;
    color: #999;
}

.btn-outline-custom:hover {
    border-color: #999;
    color: #666;
    background: #f8f9fa;
}

@media (max-width: 767px) {
    .cloud-separator {
        display: none; 
    }
    .main-card {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
        height: 100vh;
    }
    .left-side {
        padding: 30px 20px;
    }
    .right-side {
        padding: 30px 20px;
    }
    .btn-container {
        justify-content: center;
    }
}