/* 
  Design System for Doctor Notice - Login Page
  Colors: Pastel Blue (#A2D2FF) & Chanthana-kapho Orange (#FFAD60)
  Style: Premium, Modern, Glassmorphism
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Noto+Sans+Thai:wght@300;400;500;600;700&display=swap');

:root {
    --primary-blue: #A2D2FF;
    --secondary-orange: #FFB366;
    /* Dok Chanthana-kapho Orange */
    --dark-blue: #2B2D42;
    --soft-white: #FBFCFF;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-blur: 40px;
    --shadow-color: rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', 'Noto Sans Thai', sans-serif;
    background: linear-gradient(135deg, #E0F2FE 0%, #FFF3E0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

/* Dynamic Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: move 20s infinite alternate;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--primary-blue);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary-orange);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

@keyframes move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.1);
    }
}

/* Glassmorphism Card */
.login-container {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 15px var(--shadow-blur) var(--shadow-color);
    text-align: center;
    position: relative;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-section {
    margin-bottom: 2.5rem;
}

.logo-circle {
    width: 100px;
    /* ขยายจาก 85px */
    height: 100px;
    background: #fff;
    border-radius: 32px;
    /* ปรับความโค้งมนตามขนาด */
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.2rem;
    box-shadow: 0 10px 30px rgba(162, 210, 255, 0.25);
    border: 2px solid var(--soft-white);
    padding: 10px;
    /* เพิ่มพื้นที่ว่างนิดหน่อยให้ดูสมส่วน */
}

.logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-name {
    font-size: 2rem;
    letter-spacing: -0.5px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 0.3rem;
}

.brand-desc {
    color: #64748B;
    font-size: 0.95rem;
    font-weight: 500;
    opacity: 0.8;
}

/* Form Styling */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94A3B8;
    font-size: 1.1rem;
    transition: color 0.3s;
}

.form-control {
    width: 100%;
    padding: 12px 16px 12px 3rem;
    border: 2px solid transparent;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    color: var(--dark-blue);
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    background: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(162, 210, 255, 0.2);
}

.form-control:focus+i {
    color: var(--primary-blue);
}

/* Action Section */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #64748B;
}

.remember-me input {
    margin-right: 8px;
    accent-color: var(--primary-blue);
}

.forgot-password {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.forgot-password:hover {
    text-decoration: underline;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary-blue) 0%, #89C4FF 100%);
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(162, 210, 255, 0.4);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(162, 210, 255, 0.5);
}

.btn-login:active {
    transform: translateY(0);
}

/* Additional Links */
.footer-links {
    margin-top: 2rem;
    color: #64748B;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--secondary-orange);
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        max-width: 90%;
        padding: 2.5rem 1.5rem;
    }
}