@import url('https://fonts.googleapis.com/css2?family=Prompt:wght@300;400;500;600;700&display=swap');

body {
    background: linear-gradient(135deg, #D3D3D3 0%, #F5F5F5 100%); /* สีเทาอ่อน */
    font-family: 'Prompt', sans-serif;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.top-bar {
    background: #4A4A4A; /* สีเทาเข้ม */
    color: #FFFFFF;
    padding: 15px 40px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: Track your academic journey with ease0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
}

.top-bar div {
    flex: 1;
    min-width: 220px;
    text-align: center;
    font-weight: 400;
}

.navbar {
    background: #FFFFFF;
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1;
    position: relative;
}

.navbar-title {
    font-size: 24px;
    font-weight: 600;
    color: #4A4A4A; /* สีเทาเข้ม

 */
    letter-spacing: 1px;
}

.logo img {
    height: 90px;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05) rotate(5deg);
}

.header-bar {
    background: linear-gradient(90deg, #E37026, #D05F1F); /* สีส้ม */
    color: white;
    padding: 40px 20px;
    text-align: center;
    margin: 20px auto;
    width: 70%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1;
    position: relative;
    animation: fadeInSlideUp 1s ease-in-out;
}

.header-bar h1 {
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.header-bar p {
    margin: 10px 0 0;
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    padding: 40px 20px;
    flex-grow: 1;
    z-index: 1;
    position: relative;
}

.login-container, .contact-container {
    background: #FFFFFF;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
    animation: zoomIn 0.8s ease-in-out;
}

.login-container h3, .contact-container h3 {
    font-weight: 600;
    color: #4A4A4A; /* สีเทาเข้ม */
    margin-bottom: 20px;
    font-size: 26px;
    letter-spacing: 1px;
}

.form-label {
    font-weight: 500;
    color: #4A4A4A; /* สีเทาเข้ม */
    font-size: 16px;
    text-align: left;
}

.input-group {
    position: relative;
}

.input-group-text {
    background: #F5F5F5;
    border: none;
    color: #4A4A4A; /* สีเทาเข้ม */
    font-size: 16px;
}

.input-status {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

.form-control {
    border-radius: 8px;
    border: 1px solid #D3D3D3; /* สีเทาอ่อน */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 16px;
    padding: 10px 30px 10px 10px;
}

.form-control:focus {
    border-color: #E37026; /* สีส้ม */
    box-shadow: 0 0 8px rgba(227, 112, 38, 0.3);
    outline: none;
}

.btn-custom {
    background: linear-gradient(90deg, #E37026, #D05F1F); /* สีส้ม */
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 16px;
    transition: all 0.3s ease;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.btn-custom:hover {
    background: linear-gradient(90deg, #D05F1F, #E37026);
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(227, 112, 38, 0.4);
}

.btn-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.4s ease;
}

.btn-custom:hover::before {
    left: 100%;
}

.contact-container p {
    margin: 10px 0;
    font-size: 16px;
    color: #4A4A4A; /* สีเทาเข้ม */
}

.social-links .social-icon {
    color: #4A4A4A; /* สีเทาเข้ม */
    margin: 0 10px;
    font-size: 20px;
    transition: all 0.3s ease;
}

.social-links .social-icon:hover {
    color: #E37026; /* สีส้ม */
    transform: rotate(360deg);
}

.footer {
    background: #4A4A4A; /* สีเทาเข้ม */
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    z-index: 1;
    position: relative;
}

@keyframes fadeInSlideUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .login-container, .contact-container {
        width: 100%;
        max-width: 400px;
    }

    .header-bar {
        width: 90%;
    }

    .header-bar h1 {
        font-size: 28px;
    }

    .header-bar p {
        font-size: 16px;
    }
}