body {
    font-family: 'IBM Plex Sans Thai', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.form-container {
    max-width: 700px;
    margin: 30px auto;
    padding: 40px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    background-color: #ffffff;
    transition: transform 0.3s ease;
}

.form-container:hover {
    transform: translateY(-5px);
}

.form-header {
    text-align: center;
    margin-bottom: 35px;
    color: #2c3e50;
}

.form-header h2 {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 10px;
}

.form-control, .form-select {
    border-radius: 10px;
    padding: 12px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #4a90e2;
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

.form-label {
    font-weight: 500;
    color: #34495e;
    margin-bottom: 8px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group-text {
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px 0 0 10px;
}

.btn {
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4a90e2;
    border: none;
}

.btn-primary:hover {
    background-color: #357abd;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    border: none;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
}

.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 5px;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
}

/* Password strength indicator */
.password-strength {
    height: 5px;
    margin-top: 10px;
    border-radius: 5px;
    background-color: #e9ecef;
}

.password-strength div {
    height: 100%;
    border-radius: 5px;
    transition: width 0.3s ease;
}

.strength-weak { background-color: #dc3545; }
.strength-medium { background-color: #ffc107; }
.strength-strong { background-color: #28a745; }

/* Animation for success */
@keyframes success-animation {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

.is-valid {
    animation: success-animation 0.5s ease;
}
.form-header {
    text-align: center;
    margin-bottom: 35px;
    padding: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.logo-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.school-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
}

.form-header h2 {
    font-weight: 600;
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #2c3e50;
}

.form-header p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.5;
    margin: 0;
}

.header-divider {
    width: 50px;
    height: 3px;
    background: #4a90e2;
    margin: 15px auto;
    border-radius: 2px;
}

/* Animation for logo */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    animation: fadeInDown 0.8s ease-out;
}