/* General styles */
body {
    font-family: 'Sarabun', sans-serif;
    font-size: 20px;
    background-color: #f4f8f9;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    position: relative;
    background-color: #ffffff;
    padding: 80px 30px 30px;
    margin: 60px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    text-align: center;
}

/* Logo image */
.login-logo {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: contain;
    border: 4px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    background: white;
    transition: all 0.3s ease;
}

h2 {
    font-family: 'Itim', sans-serif;
    color: #47ACC8;
    font-size: 32px;
    margin: 0 0 25px 0;
    line-height: 1.3;
}

form {
    margin-bottom: 20px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="submit"],
button {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: Sarabun, sans-serif;
    font-size: 20px;
    transition: all 0.3s ease;
}

button {
    background-color: #47ACC8;
    color: white;
    border: none;
    padding: 12px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #057FA2;
}

a {
    color: #47ACC8;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Social Login Container */
.social-login {
    text-align: center;
    margin: 2rem 0;
}

.social-login h3 {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    position: relative;
}

.social-login h3:before,
.social-login h3:after {
    content: "";
    display: inline-block;
    width: 60px;
    height: 1px;
    background: #ddd;
    vertical-align: middle;
    margin: 0 1rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .container {
        padding: 100px 25px 25px;
        margin: 70px 15px;
    }

    .login-logo {
        width: 100px;
        height: 100px;
        top: -50px;
    }

    h2 {
        font-size: 32px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 90px 20px 20px;
        margin: 60px 10px;
    }

    .login-logo {
        width: 90px;
        height: 90px;
        top: -45px;
    }

    h2 {
        font-size: 32px;
    }

    button, input {
        font-size: 20px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 80px 15px 15px;
    }

    .login-logo {
        width: 80px;
        height: 80px;
        top: -40px;
        border-width: 3px;
    }

    h2 {
        font-size: 32px;
    }

    .social-login h3 {
        font-size: 20px;
    }
}

/* Hover effects */
.login-logo:hover {
    transform: translateX(-50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

button:hover, input[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.container form p label {
    display: block;
    text-align: left;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    padding-left: 2px;
}

/* LINE Login Button */
.line-login-button {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    background-color: #06C755;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    border: none;
}

/* LINE Icon */
.line-icon {
    display: block;
    width: 24px;
    height: 24px;
    background: url('../images/line_32.png') no-repeat center center;
    background-size: contain;
    margin-right: 16px;
    z-index: 1;
}

/* Button Text */
.button-text {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #FFFFFF;
    position: relative;
    z-index: 1;
}

/* Vertical Separator */
.line-login-button::after {
    content: '';
    position: absolute;
    left: 48px;
    height: 24px;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.08);
    z-index: 1;
}

/* Hover State */
.line-login-button:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
}

/* Active State */
.line-login-button:active {
    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3));
}

/* Disabled State */
.line-login-button.disabled {
    background-color: #FFFFFF;
    border: 1px solid rgba(229, 229, 229, 0.6);
    cursor: not-allowed;
}

.line-login-button.disabled .button-text {
    color: rgba(30, 30, 30, 0.2);
}

.line-login-button.disabled::after {
    background-color: rgba(229, 229, 229, 0.6);
}

.line-login-button.disabled .line-icon {
    opacity: 0.2;
}