* { margin:0; padding:0; box-sizing:border-box; font-family: 'Kanit', sans-serif; }

body {
    background: linear-gradient(135deg, #ffe6f0, #fff0f5);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

/* กล่องหลัก */
.container {
    background: #fff0f5;
    padding: 30px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(255, 192, 203, 0.3);
    width: 100%;
    max-width: 400px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
}

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

/* รูปภาพ */
.logo-container {
    position: relative;
    width: 150px;
    height: 150px;
    margin: 0 auto; /* ทำให้ตรงกลางแนวนอน */
    margin-bottom: 20px;
}
.logo-container .logo {
    width: 100%;
    height: 100%;
    object-fit: fill;
    border-radius: 50%;
    display: block;
    position: relative;
    
    z-index: 2; /* ให้รูปอยู่เหนือ border */
}

.logo-container::before {
    content: '';
    position: absolute;
    top: -8px;  /* ขนาด border */
    left: -8px;
    width: calc(100% + 16px);
    height: calc(100% + 16px);
    border-radius: 50%;
    background: conic-gradient(#fff, #00f, #fff, #00f); /* สีขาวและสีฟ้า */
    z-index: 1;
    animation: spin 2s linear infinite; /* หมุนต่อเนื่อง */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* หัวข้อโปรแกรม */
.program-title {
    font-size: 20px;
    font-weight: bold;
    color: #ff1493;
    margin-bottom: 5px;
}

h2 {
    color:#ff69b4;
    margin-bottom:20px;
}

/* ฟอร์ม */
.form-group {
    margin-bottom:15px;
    text-align:left;
}

.form-group label {
    display:block;
    margin-bottom:5px;
    color:#ff1493;
    font-weight:bold;
}

.form-group input {
    width:100%;
    padding:10px 15px;
    border-radius:10px;
    border:2px solid #ffb6c1;
    outline:none;
    transition:0.3s;
}

.form-group input:focus {
    border-color:#ff69b4;
    box-shadow:0 0 10px rgba(255,105,180,0.2);
}

/* ปุ่ม */
button {
    width:100%;
    padding:12px;
    background-color:#ff69b4;
    border:none;
    border-radius:12px;
    color:white;
    font-size:16px;
    cursor:pointer;
    transition:0.3s;
}

button:hover {
    background-color:#ff1493;
    transform:scale(1.05);
}

/* ข้อความแจ้งเตือน */
.message {
    text-align:center;
    margin-bottom:10px;
    font-weight:bold;
    color:red;
}

/* ลิงก์ */
.link {
    margin-top:15px;
}

.link a {
    color:#ff69b4;
    text-decoration:none;
}

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

@media(max-width:500px){
    .container{padding:20px;}
}