/* ===========================================
   ログインページ（login.php）
=========================================== */
.login-block {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #4FAA00;
    padding-top: 50px;
    padding-bottom: 100px;
}

.login-container {
    width: 100%;
    max-width: 560px;
}

.login-box {
    width: 100%;
    margin: 50px auto;
    padding: 70px 100px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #E0E0E0;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    margin: 0 auto 10px;
    line-height: 1;
}

.logo p {
    color: #4FAA00;
    font-size: 22px;
    text-align: center;
    font-weight: 900;
}

.login-container form {
    width: 100%;
}

.login-container .form-group {
    margin-bottom: 24px;
}

.login-container .login-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
}

.login-container .setup-link {
    text-align: center;
}

.login-container .setup-link a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.login-container .setup-link a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.login-container .error {
    background: #FFEBEE;
    color: #C62828;
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 2px solid #E74C3C;
    font-size: 14px;
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #4FAA00;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #FAFAFA;
    color: #2C2C2C;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #4FAA00;
}

.error {
    background: #FFEBEE;
    color: #C62828;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 2px solid #E74C3C;
}

.success {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 2px solid #4FAA00;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #4FAA00;
    color: white;
    border-color: #4FAA00;
}

.btn-primary:hover {
    background: #3D8800;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.register-link {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

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

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

/* ==================================== */
/* Googleログインボタンスタイル */
/* ==================================== */

.social-login {
    margin-top: 30px;
}

.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #E0E0E0;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #666666;
    font-size: 14px;
    font-weight: normal;
    position: relative;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #E0E0E0;
    background: #ffffff;
    color: #2C2C2C;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background-color: #FAFAFA;
    border-color: #CCCCCC;
    text-decoration: none;
    color: #2C2C2C;
}

.btn-google:active {
    background-color: #F5F5F5;
}

.google-icon {
    margin-right: 12px;
    flex-shrink: 0;
}

/* モバイルレスポンシブ対応 */

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

    .login-box {
        width: 100%;
        margin: 30px auto;
        padding: 30px 20px;
    }
}
